From c173a8b009a4e1d6ff19963a17063a1d9bfe2ece Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 4 Jun 2022 10:40:24 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0408fb7..a30f290 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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