Skip to content

Commit

Permalink
gitlab-ci: disable coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Mar 30, 2022
1 parent 5df6ff6 commit 80a143a
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,18 @@ coverage:
paths:
- "target/site/jacoco/jacoco.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
#
# 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

0 comments on commit 80a143a

Please sign in to comment.