summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2019-05-10 09:37:19 +0200
committerGünther Wagner <info@gunibert.de>2021-10-21 12:52:27 +0200
commitde33d25ef47ee5637c94e3ff6d7df9935f222d3b (patch)
tree85574b2e04fe8a7ff38b16023c1ac1bf60403946 /.gitlab-ci.yml
parentafcf2ed34ca0b47aaee6f81625d4deec2c3d6bb9 (diff)
downloadlibrest-de33d25ef47ee5637c94e3ff6d7df9935f222d3b.tar.gz
Add CI for the librest builds
Given that librest doesn't get a lot of attention anymore, it's useful to at least have this for the occasional contributor. https://gitlab.gnome.org/GNOME/librest/merge_requests/1
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..53873dd
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+image: fedora:latest
+
+stages:
+ - build
+
+build-librest:
+ stage: build
+ except:
+ - tags
+ before_script:
+ - dnf update -y --nogpgcheck
+ - dnf -y install --nogpgcheck redhat-rpm-config
+ glib2-devel gobject-introspection-devel libxml2-devel meson ninja-build
+ libsoup-devel vala
+ script:
+ - meson _build
+ - ninja -C _build
+ - bash +x ./.gitlab-ci/run-tests.sh
+ artifacts:
+ reports:
+ junit: "_build/${CI_JOB_NAME}-report.xml"
+ name: "librest-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+ when: always
+ paths:
+ - "_build/config.h"
+ - "_build/meson-logs"
+ - "_build/${CI_JOB_NAME}-report.xml"