EDIT::Update .gitlab-ci.yml
undid code coverage part
This commit is contained in:
@@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user