.gitlab-ci.yml 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
image: fedora:27

cache:
    key: dnf-cache
    paths:
        - dnf-cache/

variables:
    BUILDTOOLS_PKGS: "meson gcc redhat-rpm-config vala-tools"
    GLIB2_PKGS: "pkgconfig(glib-2.0) pkgconfig(gobject-2.0)"
    GSIGNOND_PKG: "pkgconfig(gsignond)"
    SOUP_PKG: "pkgconfig(libsoup-2.4)"
    JSON_GLIB_PKG: "pkgconfig(json-glib-1.0)"
    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 $SOUP_PKG $JSON_GLIB_PKG $GSIGNOND_PKG $DOCGEN_PKGS $GIR_PKGS $CI_PKGS $LOCALE_PKGS

build_x86-64:
    stage: build
    script:
        - meson build -Db_coverage=true
        - cd build
        - ninja
    artifacts:
        paths:
            - ./

test_x86-64:
    stage: test
    script:
        - cd build
        - ninja test
        - ninja coverage-html
    dependencies:
        - build_x86-64
    artifacts:
        paths:
            - ./