...
 
Commits (2)
---
image: ubuntu:artful
image: fedora:26
cache:
key: apt-cache
key: dnf-cache
paths:
- apt-cache/
- dnf-cache/
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR"
install -y software-properties-common python3-software-properties
- add-apt-repository ppa:accounts-sso-devs/daily
- apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR"
install -y meson pkg-config libdbus-1-dev gtk-doc-tools gobject-introspection
libgirepository1.0-dev libgsignond-common-dev libgsasl7-dev check locales lcov
- echo "en_US UTF-8" > /etc/locale.gen
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
variables:
BUILDTOOLS_PKGS: "meson gcc redhat-rpm-config"
GLIB2_PKGS: "pkgconfig(glib-2.0) pkgconfig(gobject-2.0)"
GSIGNOND_PKG: "pkgconfig(gsignond)"
LIBS_PKGS: "pkgconfig(libgsasl)"
DOCGEN_PKGS: "pkgconfig(gtk-doc)"
GIR_PKGS: "pkgconfig(gobject-introspection-1.0)"
CI_PKGS: "pkgconfig(check) lcov"
LOCALE_PKGS: "langpacks-en"
before_script:
- dnf --setopt=cachedir=`pwd`/dnf-cache --quiet --refresh --assumeyes install $BUILDTOOLS_PKGS $GLIB2_PKGS $GSIGNOND_PKG $LIBS_PKGS $DOCGEN_PKGS $GIR_PKGS $CI_PKGS $LOCALE_PKGS
build_amd64:
build_x86-64:
stage: build
script:
- meson build -Db_coverage=true
......@@ -31,14 +28,14 @@ build_amd64:
paths:
- ./
test_amd64:
test_x86-64:
stage: test
script:
- cd build
- ninja test
- ninja coverage-html
dependencies:
- build_amd64
- build_x86-64
artifacts:
paths:
- ./
......@@ -55,7 +52,7 @@ pages:
- tags
- master@accounts-sso/gsignond-plugin-sasl
dependencies:
- test_amd64
- test_x86-64
artifacts:
paths:
- public