[gnome-control-center] CI: add code coverage report
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] CI: add code coverage report
- Date: Thu, 21 Jun 2018 16:04:47 +0000 (UTC)
commit a1d57165c1a5de9aa409aad55bfe0ac05fd59fd7
Author: Claudio André <claudioandre br gmail com>
Date: Sun Jun 17 19:13:39 2018 -0300
CI: add code coverage report
.gitlab-ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e908f2944..7a4db76f7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -65,6 +65,52 @@ test:
meson test -C _build --verbose --no-stdsplit
fi
+##
+# Stage: Test
+#
+# Runs the coverage test.
+##
+coverage:
+ stage: test
+ artifacts:
+ name: log
+ when: always
+ paths:
+ - $(pwd)/*.log
+ - _build/meson-logs/*
+ - _build/meson-logs/coveragereport
+
+ script:
+ - echo "== Info =="
+ - build-aux/ci/ci-helper.sh "INFO"
+ - build-aux/ci/ci-helper.sh "GIT_INFO"
+
+ - echo "== Building =="
+ - rm -rf _build/
+ - meson . _build -Db_coverage=true
+ - ninja -C _build 2>&1 | tee compilation.log
+
+ - echo "== Testing =="
+ - ninja -C _build test
+ - ninja -C _build coverage-html
+
+##
+# Stage: Delivery
+#
+# Publish the Coverage Report generated above
+##
+pages:
+ stage: delivery
+ dependencies:
+ - coverage
+ script:
+ - mv _build/meson-logs/coveragereport/ public/
+ artifacts:
+ paths:
+ - public
+ only:
+ - master@GNOME/gnome-control-center
+
##
# Stage: Delivery
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]