Update .gitlab-ci.yml

This commit is contained in:
Heero Yui 2020-08-28 17:32:45 +00:00
parent d1ed80e789
commit 04c43fc74c

View File

@ -36,7 +36,7 @@ test_job:
- build_job - build_job
script: script:
- mvn $MAVEN_CLI_OPTS test - mvn $MAVEN_CLI_OPTS test
- mkdir -p target/site/cobertura && ./cover2cover.py target/site/jacoco/jacoco.xml src/io/scenarium/logger/ > target/site/cobertura/coverage.xml - mkdir -p target/site/cobertura && /usr/bin/ppython3 ./cover2cover.py target/site/jacoco/jacoco.xml src/io/scenarium/logger/ > target/site/cobertura/coverage.xml
- awk -F, '{ instructions += $4 + $5; covered += $5 } END { print "===============================================\n== Coverage Results:\n==\n== ", covered, " / ", instructions, " instructions covered"; print "== ", 100*covered/instructions, "% covered\n==\n===============================================" }' target/site/jacoco/jacoco.csv - awk -F, '{ instructions += $4 + $5; covered += $5 } END { print "===============================================\n== Coverage Results:\n==\n== ", covered, " / ", instructions, " instructions covered"; print "== ", 100*covered/instructions, "% covered\n==\n===============================================" }' target/site/jacoco/jacoco.csv
artifacts: artifacts:
when: on_success when: on_success