Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
b3be4824
Commit
b3be4824
authored
5 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Extract code coverage from Jacoco for GitLab
parent
062291f4
1 merge request
!155
Extract code coverage from Jacoco for GitLab
Pipeline
#30194
passed with warnings with stages
in 2 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
with
2 additions
and
0 deletions
.gitlab-ci.yml
+
2
−
0
View file @
b3be4824
...
...
@@ -49,8 +49,10 @@ unit_test:
paths
:
-
$OUTPUT_DIR
cache
:
*maven_cache
coverage
:
'
/Code
coverage:
\d+\.\d+/'
script
:
-
mvn -B jacoco:prepare-agent surefire:test jacoco:report
-
awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "Instructions covered:", covered, "/", instructions; print "Code coverage:", 100 * covered / instructions "%" }' "$OUTPUT_DIR/site/jacoco/jacoco.csv"
package
:
stage
:
post-build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment