summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2019-02-13 13:54:36 -0800
committerEric Caruso <ejcaruso@chromium.org>2019-02-14 13:31:58 -0800
commitbf0b5a07ca2dab3c42749644d97f5faed6f58654 (patch)
tree0060572ca6f0ef4769c9612a1b4f35f0dfa096b8
parent94e14d7cfc86299c8d6986e39cb81e0aebefa943 (diff)
downloadModemManager-bf0b5a07ca2dab3c42749644d97f5faed6f58654.tar.gz
Add .gitlab-ci.yml
This allows us to run unit tests on every commit to the gitlab instance.
-rw-r--r--.gitlab-ci.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..df8278c40
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+image: gcc
+
+stages:
+ - test
+
+before_script:
+ - apt update && apt -y install autoconf automake libtool libgudev-1.0-dev libgettextpo-dev autopoint xsltproc dbus
+ - export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
+ - git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
+ - pushd libmbim
+ - ./autogen.sh
+ - make
+ - make install
+ - popd
+ - git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
+ - pushd libqmi
+ - ./autogen.sh
+ - make
+ - make install
+ - popd
+
+test:
+ stage: test
+ script:
+ - ./autogen.sh
+ - make
+ - make check
+ - make install