Commit c5a3c27b authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

Display and track coverage global value

parent 84264dfa
Pipeline #1234 failed with stages
in 21 minutes and 42 seconds
......@@ -47,6 +47,8 @@ coverage-import:
stage: visualize
image: haynes/jacoco2cobertura:1.0.4
script:
# Display total coverage
- "grep -o '<tfoot.*tfoot>' target/site/jacoco/index.html | sed 's:<[^>]*>: :g'"
# convert report from jacoco to cobertura
- 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml'
# read the <source></source> tag and prepend the path to every filename attribute
......@@ -58,6 +60,7 @@ coverage-import:
artifacts:
reports:
cobertura: target/site/cobertura.xml
coverage: '/Total.*?([0-9]{1,3})%/'
# On main branches (develop, release-*, master)
# the produced artifacts are deployed on the Nexus of the project
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment