Skip to content
Snippets Groups Projects
Commit 3cf36dae authored by Colin DAMON's avatar Colin DAMON
Browse files

Use branch coverage

parent 06db4bbb
No related branches found
No related tags found
1 merge request!12Resolve "Mutualise java build"
...@@ -19,6 +19,7 @@ cache: ...@@ -19,6 +19,7 @@ cache:
script: script:
- mvn $MAVEN_CLI_OPTS clean package - mvn $MAVEN_CLI_OPTS clean package
- cat target/site/jacoco/index.html - cat target/site/jacoco/index.html
- awk -F"," '{ branches += $6 + $7; covered += $7 } END { print covered, "/", branches, "branches covered"; print 100*covered/branches, "%covered" }' target/site/jacoco/jacoco.csv
artifacts: artifacts:
reports: reports:
junit: $PROJECT_FOLDER/target/surefire-reports/TEST-*.xml junit: $PROJECT_FOLDER/target/surefire-reports/TEST-*.xml
...@@ -33,4 +34,4 @@ cache: ...@@ -33,4 +34,4 @@ cache:
- ".gitlab-ci.yml" - ".gitlab-ci.yml"
- ".gitlab-common-ci.yml" - ".gitlab-common-ci.yml"
- "$PROJECT_FOLDER/**/*" - "$PROJECT_FOLDER/**/*"
coverage: '/Total.*?([0-9]{1,3})%/' coverage: '/([^%]+) %covered/'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment