summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessm.com>2019-03-28 16:09:42 +0000
committerSimon McVittie <smcv@collabora.com>2019-05-02 19:14:50 +0100
commit170b105b5f65ebb3a8409fde8ae7e4f55c384946 (patch)
treefd7e512b6380245847a215aed8072edf8b6103fe
parent04c11c7390c5e044aa0079c3b5b5e7a3c8b7f577 (diff)
downloadlibglnx-170b105b5f65ebb3a8409fde8ae7e4f55c384946.tar.gz
Add GitLab CI
This only uses Meson because it's not straightforward to do a standalone build with the Autotools goop.
-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..0d204ba
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+image: fedora:rawhide
+
+stages:
+ - build
+
+before_script:
+ - dnf install -y gcc meson ninja-build "pkgconfig(gio-2.0)" "pkgconfig(gio-unix-2.0)" "pkgconfig(glib-2.0)"
+
+build:
+ stage: build
+ script:
+ - meson _build .
+ - cd _build
+ - ninja
+ - meson test
+ # Run it again! This previously did not work.
+ - meson test
+ artifacts:
+ when: on_failure
+ name: "libglnx-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
+ paths:
+ - "${CI_PROJECT_DIR}/_build/meson-logs"