From db303173d9ae6bdd02a86b0d59d1ccc99e1e5c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 3 Jan 2019 15:21:33 -0500 Subject: gitlab-ci: Add meson tests to build --- .gitlab-ci.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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 @@ -51,6 +51,36 @@ build meson: - meson --werror build/ - 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/ -- cgit v1.2.1