From 3e7fbeae75e08e585f83c605c85f5c4256f68fc4 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 8 Apr 2019 12:27:06 +0000 Subject: [PATCH] EDIT::Update .gitlab-ci.yml undid code coverage part --- .gitlab-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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/'