Fix coverage reporting with gitlab CI

.gitlab-ci.yml:
Remove legacy keyword 'cobertura' and use the gitlab >= 15 based
`coverage_report` which is used to specify format and path to coverage
XML.
This commit is contained in:
David Runge 2022-06-04 10:40:24 +02:00
parent eab15c07ef
commit c173a8b009
No known key found for this signature in database
GPG Key ID: 7258734B41C31549

View File

@ -33,11 +33,14 @@ test:
- tests/*
- .gitlab-ci.yml
- Makefile
coverage: '/TOTAL.*\s([.\d]+)%/'
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: build/coverage.xml
junit: build/junit-report.xml
cobertura: build/coverage.xml
build_install:
stage: test