[tracker/wip/carlosg/test: 3/5] ci: Isolate coverage job into its own build/test run
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/test: 3/5] ci: Isolate coverage job into its own build/test run
- Date: Sun, 29 Aug 2021 16:41:48 +0000 (UTC)
commit fc6c2d91fb4490413f278947f354df05254bf1a3
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 29 14:02:46 2021 +0200
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.
.gitlab-ci.yml | 7 +++++--
1 file 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]