Commit 3cf36dae authored by Colin DAMON's avatar Colin DAMON
Browse files

Use branch coverage

parent 06db4bbb
......@@ -19,6 +19,7 @@ cache:
script:
- mvn $MAVEN_CLI_OPTS clean package
- 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:
reports:
junit: $PROJECT_FOLDER/target/surefire-reports/TEST-*.xml
......@@ -33,4 +34,4 @@ cache:
- ".gitlab-ci.yml"
- ".gitlab-common-ci.yml"
- "$PROJECT_FOLDER/**/*"
coverage: '/Total.*?([0-9]{1,3})%/'
coverage: '/([^%]+) %covered/'
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