Skip to content

Commit

Permalink
gitlab-ci: enable test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Dec 8, 2022
1 parent 330d367 commit 5232af1
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,17 @@ coverage:
paths:
- "target/site/jacoco/jacoco.xml"

#
# Gitlab >= 14.9 required
#coverage-report:
# stage: coverage
# image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
# script:
# - 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/cobertura.xml'
# dependencies:
# - coverage
# needs: ["coverage"]
# artifacts:
# reports:
# coverage_report:
# coverage_format: cobertura
# path: target/site/cobertura.xml
coverage-report:
stage: coverage
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
script:
- 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/cobertura.xml'
dependencies:
- coverage
needs: ["coverage"]
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: target/site/cobertura.xml

0 comments on commit 5232af1

Please sign in to comment.