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 - .gradle
# Code coverage badge # Code coverage badge
code-coverage: # code-coverage:
stage: code-coverage # stage: code-coverage
script: # script:
- mvn -B clean verify # - mvn -B clean verify
after_script: # 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 += $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 # - 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\" # - echo \"$(cat target/site/jacoco/jacoco.csv)% covered\"
coverage: '/(\d+.\d+) % +branches covered/' # coverage: '/(\d+.\d+) % +branches covered/'