Typicalc/.gitlab-ci.yml

12 lines
669 B
YAML
Raw Normal View History

2021-01-27 09:24:54 +00:00
build:
script:
2021-01-27 19:53:33 +00:00
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check
2021-01-27 09:26:09 +00:00
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp test
2021-01-28 13:44:11 +00:00
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp 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
- "head -n 1 target/site/cobertura.xml | rg --only-matching -r '\$1' 'line-rate=\"([0-9.]+)\"' | awk '{ print \"Test Coverage: \" (\$1 * 100) \"%\" }'"
artifacts:
reports:
2021-01-28 13:44:11 +00:00
cobertura: target/site/cobertura.xml