summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2019-01-03 15:21:33 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-01-03 23:04:09 -0500
commitdb303173d9ae6bdd02a86b0d59d1ccc99e1e5c3d (patch)
treefc0bb7d588bf5ccd1d58f9d4630ad53ae23f9f48
parent220cdae2f419d02dd135323824ac7cf303c84e90 (diff)
downloadlibnice-db303173d9ae6bdd02a86b0d59d1ccc99e1e5c3d.tar.gz
gitlab-ci: Add meson tests to build
-rw-r--r--.gitlab-ci.yml32
1 files changed, 31 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7c49d6a..fa6df96 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
image: registry.freedesktop.org/libnice/libnice/build-tools:centos-7
stages:
- build
+ - test
build autotools:
stage: build
@@ -35,7 +36,6 @@ build meson:
PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
DEPENDENCIES: >
meson
- net-tools
gnutls-devel
gupnp-igd-devel
glib2-devel
@@ -52,6 +52,36 @@ build meson:
- ninja -C build/
artifacts:
paths:
+ - build/
+
+test meson:
+ image: 'fedora'
+ stage: test
+ allow_failure: true
+ dependencies:
+ - build meson
+ except:
+ - schedules
+ variables:
+ PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
+ DEPENDENCIES: >
+ meson
+ net-tools
+ gnutls-devel
+ gupnp-igd-devel
+ glib2-devel
+ gobject-introspection-devel
+ gstreamer1-devel
+ redhat-rpm-config
+ before_script:
+ - dnf install -y ${DEPENDENCIES}
+ - mkdir -p "${CI_PROJECT_DIR}"
+ script:
+ - ifconfig
+ - meson test -C build --print-errorlogs
+ artifacts:
+ when: on_failure
+ paths:
- build/meson-logs/
submit-to-coverity: