From 4d74838c50597e0f9e54d5d729b61e7a26075c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 27 Sep 2022 12:53:02 +0200 Subject: [PATCH] ci: Generate Cobertura XML and use it to feed gitlab for MR integration gitlab has coverage integration in MRs, but we need a cobertura formatted XML files (each must be less than 10 MB) to show it, since meson generates it already via gcovr, we can just inform gitlab about it See https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8854628c..1e63c1af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,6 +73,9 @@ test: artifacts: reports: junit: "_build/meson-logs/testlog.junit.xml" + coverage_report: + coverage_format: cobertura + path: _build/meson-logs/coverage.xml expose_as: 'Coverage Report' when: always paths: