[tracker-miners/wip/carlosg/ci-coverage-in-mr] ci: Enable coverage integration in MR diff view
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/ci-coverage-in-mr] ci: Enable coverage integration in MR diff view
- Date: Mon, 17 Oct 2022 16:17:11 +0000 (UTC)
commit c4f761c34da7988b4a12cf50cf9ac226e7a2305d
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Oct 17 18:15:20 2022 +0200
ci: Enable coverage integration in MR diff view
Export the gcovr report using the cobertura format, that enables
Gitlab to show coverage information inline in the diff view.
.gitlab-ci.yml | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fa71c8e3..e89a016e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -362,6 +362,9 @@ coverage:
- gcovr --add-tracefile 'coverage-*.json'
--exclude=build
--html-details --print-summary --output coveragereport/index.html
+ - gcovr --add-tracefile 'coverage-*.json'
+ --exclude=build
+ --xml --output coveragereport/coverage.xml
coverage: '/^lines: (\d+\.\d+\%)/'
artifacts:
expose_as: 'Coverage'
@@ -369,6 +372,10 @@ coverage:
paths:
- coveragereport
- coveragereport/index.html
+ reports:
+ coverage_report:
+ coverage_format: cobertura
+ path: coveragereport/coverage.xml
needs:
- test-fedora@x86_64
- test-fedora-rawhide@x86_64
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]