.gitlab-ci.yml 1.63 KB
Newer Older
1 2 3
before_script:
    -  sed -i '/^#\sdeb-src /s/^#//' '/etc/apt/sources.list'
    - apt-get update && apt-get build-dep --yes geoclue-2.0
Zeeshan Ali's avatar
Zeeshan Ali committed
4 5 6
    - apt-get install --yes git gobject-introspection libmm-glib-dev wget
    - apt-get install --yes libnotify-dev xsltproc gtk-doc-tools python3-pip
    - apt-get install --yes ninja-build gettext modemmanager-dev
7
    - pip3 install meson
8 9

# Ubuntu 14.04 is not supported, see README for details
10 11
#
# FIXME: Also disable gtk-doc on Ubuntu 16.04 cause it fails install. Would be nice to get it fixed.
12 13 14

ubuntu-16.04:
    image: ubuntu:xenial
15
    artifacts:
16
        when: always
17 18
        name: "xenial-${CI_COMMIT_REF_NAME}"
        paths:
19
            - "${CI_PROJECT_DIR}/build"
20
    script: meson -Dgtk-doc=false build && ninja -C build && ninja -C build test && ninja -C build install
21 22 23

ubuntu-17.10:
    image: ubuntu:artful
24
    artifacts:
25
        when: always
26 27
        name: "artful-${CI_COMMIT_REF_NAME}"
        paths:
28
            - "${CI_PROJECT_DIR}/build"
29
    script: meson build && ninja -C build && ninja -C build test && ninja -C build install
30 31 32

ubuntu-18.04:
    image: ubuntu:bionic
33
    artifacts:
34
        when: always
35 36
        name: "bionic-${CI_COMMIT_REF_NAME}"
        paths:
37
            - "${CI_PROJECT_DIR}/build"
38
    script: meson build && ninja -C build && ninja -C build test && ninja -C build install
39 40 41 42 43 44 45 46 47

ubuntu-18.04-no-backend:
    image: ubuntu:bionic
    artifacts:
        when: always
        name: "bionic-no-backend-${CI_COMMIT_REF_NAME}"
        paths:
            - "${CI_PROJECT_DIR}/build"
    script: meson -Denable-backend=false build && ninja -C build && ninja -C build test && ninja -C build install