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
This commit is contained in:
Marco Trevisan (Treviño)
2022-09-27 12:53:02 +02:00
parent c429052e5e
commit 4d74838c50

View File

@@ -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: