summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl-Philipp Richter <krichter722@aol.de>2018-05-12 20:21:22 +0200
committerZeeshan Ali <zeenix@gmail.com>2018-05-17 17:00:22 +0000
commitd2330f3edb6e467b3b0a4b1ce0533498b2964d83 (patch)
tree196785c7557855cc7b93ce5c396613610d41f08b
parent9c45c6ca62750965a45441768e0c54aa1b89847e (diff)
Add initial .gitlab-ci.yml
GitLab provides a CI service which allows to test all commit and merge requests automatically on arbitraty Docker images. The initial setup includes building prerequisites which can't be provided with 'apt-get build-dep' and running './autogen.sh && configure && make && make check && make install'.
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3dab068
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+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
+ # Further packages are installed as these are new dependencies for the latest source code, compared to the dependencies listed in the distribution version (`apt-get build-dep` always refers to the version which is built for the OS rather than the up-to-date source)
+ - wget https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz && tar xf gettext-0.19.8.1.tar.xz && cd gettext-0.19.8.1 && ./configure && make -j && make install && ldconfig && cd ..
+ # older Ubuntu systems require explicit `ldconfig` in order to avoid errors like `error while loading shared libraries: libgettextsrc-0.19.8.1.so: cannot open shared object file: No such file or directory`
+ - git clone --depth 50 --recurse-submodules https://github.com/freedesktop/ModemManager.git && cd ModemManager && ./autogen.sh --without-udev --without-mbim --without-qmi && make -j && make install && cd ..
+
+# Ubuntu 14.04 is not supported, see README for details
+
+ubuntu-16.04:
+ image: ubuntu:xenial
+ script: git clone --depth 50 --recurse-submodules https://gitlab.freedesktop.org/geoclue/geoclue && cd geoclue && ./autogen.sh --disable-nmea-source && make -j && make -j check && make install
+
+ubuntu-17.10:
+ image: ubuntu:artful
+ script: git clone --depth 50 --recurse-submodules https://gitlab.freedesktop.org/geoclue/geoclue && cd geoclue && ./autogen.sh --disable-nmea-source && make -j && make -j check && make install
+
+ubuntu-18.04:
+ image: ubuntu:bionic
+ script: git clone --depth 50 --recurse-submodules https://gitlab.freedesktop.org/geoclue/geoclue && cd geoclue && ./autogen.sh --disable-nmea-source && make -j && make -j check && make install