Commit 41613276 authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Merge branch 'add-coverage-visualization' into 'develop'

Add a job to convert and import coverage data

See merge request !132
parents 024cb36a ab7509c4
Pipeline #1079 passed with stages
in 29 minutes and 28 seconds
stages:
- verify
- visualize
- deploy
default:
......@@ -39,6 +40,25 @@ verify:
junit:
- target/surefire-reports/*.xml
# Convert and import in GitLab coverage data.
# The information is then available directly in merge-request view.
# Cf. https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html
coverage-import:
stage: visualize
image: haynes/jacoco2cobertura:1.0.4
script:
# 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
- 'python /opt/source2filename.py target/site/cobertura.xml'
needs:
- verify
dependencies:
- verify
artifacts:
reports:
cobertura: target/site/cobertura.xml
# On main branches (develop, release-*, master)
# the produced artifacts are deployed on the Nexus of the project
# (https://packages.orekit.org/)
......
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