Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guilhem Bonnefille
Orekit
Commits
c5a3c27b
Commit
c5a3c27b
authored
Aug 11, 2021
by
Guilhem Bonnefille
Browse files
Display and track coverage global value
parent
84264dfa
Pipeline
#1234
failed with stages
in 21 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c5a3c27b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment