summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-08-29 14:02:46 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-08-29 22:33:30 +0200
commitc61ab74e5f0302668abfd23968876f61184dd0ac (patch)
tree8c5d2013b6cc5aeb250ab83ec10b2713b94bcf36 /.gitlab-ci.yml
parentad948574b871df0bd93126534fa51447fb9810e8 (diff)
downloadtracker-c61ab74e5f0302668abfd23968876f61184dd0ac.tar.gz
ci: Isolate coverage job into its own build/test run
Right now we use the result from the build/test jobs on fedora/x86_64, we however do some other things on those trees (e.g. build docs) that triggers Tracker code being run, and confuses the results of gcovr wrt the lines being tested. Separate the coverage CI job to do its own build/test so the other jobs are orthogonal to coverage checks.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fcc28018c..d3cc1229d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -190,7 +190,7 @@ check-code-style:
.build-template: &build
stage: build
script:
- - meson . build -Ddocs=$([ -z "$NO_DOCS" ] && echo "true" || echo "false") -Db_lto=true -Db_coverage=true -Dsystemd_user_services=false -Dtests_tap_protocol=true --prefix /usr
+ - meson . build -Ddocs=$([ -z "$NO_DOCS" ] && echo "true" || echo "false") -Db_lto=true -Dsystemd_user_services=false -Dtests_tap_protocol=true --prefix /usr
- ninja -C build
- |
if [ -z "$NO_DOCS" ]; then ninja -C build docs/reference/libtracker-sparql/Tracker-doc; fi
@@ -328,7 +328,10 @@ coverage-analysis:
stage: analysis
allow_failure: true
script:
+ - meson build -Db_coverage=true -Ddocs=false -Dsystemd_user_services=false -Dtests_tap_protocol=true --prefix /usr
- cd build
+ - ninja
+ - env LANG=C.UTF-8 LC_ALL=C.UTF-8 dbus-run-session meson test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}
- mkdir -p coveragereport
- gcovr --html-details --print-summary --root=.. --exclude=../docs/reference --exclude=../tests --exclude=../utils --exclude=../examples --output coveragereport/index.html
coverage: '/^lines: (\d+\.\d+\%)/'
@@ -337,7 +340,7 @@ coverage-analysis:
paths:
- build/coveragereport
needs:
- - test-fedora@x86_64
+ - build-fedora-container@x86_64
coverity:
extends: