EDIT::Update .gitlab-ci.yml

undid code coverage part
This commit is contained in:
Sem van der Hoeven
2019-04-08 12:27:06 +00:00
parent 839292ad91
commit 3e7fbeae75

View File

@@ -36,12 +36,12 @@ test:
- .gradle
# Code coverage badge
code-coverage:
stage: code-coverage
script:
- mvn -B clean verify
after_script:
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% instructrions covered" }' target/site/jacoco/jacoco.csv
- awk -F"," '{ instructions += $6 + $7; covered += $7 } END { print covered, "/", instructions, " branches covered"; print 100*covered/instructions, "% branches covered" }' target/site/jacoco/jacoco.csv
- echo \"$(cat target/site/jacoco/jacoco.csv)% covered\"
coverage: '/(\d+.\d+) % +branches covered/'
# code-coverage:
# stage: code-coverage
# script:
# - mvn -B clean verify
# after_script:
# - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% instructrions covered" }' target/site/jacoco/jacoco.csv
# - awk -F"," '{ instructions += $6 + $7; covered += $7 } END { print covered, "/", instructions, " branches covered"; print 100*covered/instructions, "% branches covered" }' target/site/jacoco/jacoco.csv
# - echo \"$(cat target/site/jacoco/jacoco.csv)% covered\"
# coverage: '/(\d+.\d+) % +branches covered/'