summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b33f7c90496a245f95a08245a926ced46c2ba35f (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
29
30
31
32
33
34
35
36
before_script:
    -  sed -i '/^#\sdeb-src /s/^#//' '/etc/apt/sources.list'
    - apt-get update && apt-get build-dep --yes geoclue-2.0
    - apt-get install --yes git gobject-introspection libmm-glib-dev wget libnotify-dev xsltproc gtk-doc-tools python3-pip ninja-build gettext modemmanager-dev
    - pip3 install meson

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

ubuntu-16.04:
    image: ubuntu:xenial
    artifacts:
        when: on_failure
        name: "xenial-${CI_COMMIT_REF_NAME}"
        paths:
            - "${CI_PROJECT_DIR}/build"
    script: meson -Dnmea-source=false -Dgtk-doc=false build && ninja -C build && ninja -C build test && ninja -C build install

ubuntu-17.10:
    image: ubuntu:artful
    artifacts:
        when: on_failure
        name: "artful-${CI_COMMIT_REF_NAME}"
        paths:
            - "${CI_PROJECT_DIR}/build"
    script: meson -Dnmea-source=false build && ninja -C build && ninja -C build test && ninja -C build install

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