Typicalc/.gitlab-ci.yml
2021-01-30 13:52:54 +01:00

10 lines
433 B
YAML

build:
script:
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check jacoco:prepare-agent test jacoco:report
- python3 /opt/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > target/site/cobertura.xml
- python3 /opt/source2filename.py target/site/cobertura.xml
- /opt/calcCoverage.sh < target/site/cobertura.xml
artifacts:
reports:
cobertura: target/site/cobertura.xml