summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: bea3b6931acfdecd4bc93e8ec3debd848a618b57 (plain)
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
before_script:
    -  sed -i '/^#\sdeb-src /s/^#//' '/etc/apt/sources.list'
    - apt-get --allow-unauthenticated update && apt-get build-dep --yes geoclue-2.0
    - apt-get install --yes git gobject-introspection libmm-glib-dev wget valac
    - apt-get install --yes libnotify-dev xsltproc gtk-doc-tools python3-pip
    - apt-get install --yes ninja-build gettext modemmanager-dev
    - pip3 install meson==0.53.2

# Ubuntu 14.04 is not supported, see README for details
#

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

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