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:
parent
eab15c07ef
commit
c173a8b009
@ -33,11 +33,14 @@ test:
|
|||||||
- tests/*
|
- tests/*
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- Makefile
|
- Makefile
|
||||||
|
coverage: '/TOTAL.*\s([.\d]+)%/'
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
reports:
|
reports:
|
||||||
|
coverage_report:
|
||||||
|
coverage_format: cobertura
|
||||||
|
path: build/coverage.xml
|
||||||
junit: build/junit-report.xml
|
junit: build/junit-report.xml
|
||||||
cobertura: build/coverage.xml
|
|
||||||
|
|
||||||
build_install:
|
build_install:
|
||||||
stage: test
|
stage: test
|
||||||
|
Loading…
Reference in New Issue
Block a user