diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e1a3197ebcff9e0efc8c16afe185a708cb224ec..a2f1fe0831cd5c129cf197e7f95e81d250ada8d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,17 @@ build-test: only: - test +test: + stage: test + tags: + - docker + script: + - mvn clean test + - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print "coverage=" 100*covered/instructions }' target/site/jacoco/jacoco.csv + coverage: '/coverage=\d+\.\d+/' + only: + - master + test-test: stage: test tags: