diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 693c19b..8214c98 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/'