[hitori/ci] ci: Add GitLab CI
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hitori/ci] ci: Add GitLab CI
- Date: Tue, 19 Feb 2019 16:07:51 +0000 (UTC)
commit dbc914202dbf7f302c666dc0a31cfa396f16d66d
Author: Philip Withnall <withnall endlessm com>
Date: Tue Feb 19 15:58:30 2019 +0000
ci: Add GitLab CI
Signed-off-by: Philip Withnall <withnall endlessm com>
.gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b6359d5
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,37 @@
+image: debian:unstable
+
+before_script:
+ - apt update -qq
+ - apt install -y -qq build-essential meson pkg-config gtk-doc-tools
+ libxml2-utils gobject-introspection dbus
+ libglib2.0-dev libgtk-3-dev appstream-util
+ desktop-file-utils lcov
+ - export LANG=C.UTF-8
+
+stages:
+ - build
+ - test
+
+build-job:
+ stage: build
+ script:
+ - meson --buildtype debug --werror _build .
+ - ninja -C _build
+ except:
+ - tags
+ artifacts:
+ when: on_failure
+ name: "hitori-_${CI_COMMIT_REF_NAME}"
+ paths:
+ - "${CI_PROJECT_DIR}/_build/meson-logs"
+
+test:
+ stage: test
+ script:
+ - meson _build . -Db_coverage=true
+ - ninja -C _build test
+ - ninja -C _build coverage
+ coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
+
+# FIXME: Run gtkdoc-check when we can. See:
+# https://github.com/mesonbuild/meson/issues/3580
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]