[tracker/wip/carlosg/test: 1/3] ci: Isolate coverage job into its own build/test run




commit 297197dd856e033f4d9afecb04fd9ea1ba024e92
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

 .gitlab-ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 83f5cfb51..461f03507 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
   artifacts:
     expire_in: 1 day
@@ -326,7 +326,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+\%)/'
@@ -335,7 +338,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]