Typicalc/.gitlab-ci.yml

10 lines
488 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
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp cobertura:cobertura
2021-01-28 09:47:50 +00:00
- "head target/site/cobertura/coverage.xml | rg --only-matching -r '$1' 'line-rate=\"([0-9.]+)\"' | awk '{ print \"Test Coverage: \" $1 * 100 \"%\" }'"
artifacts:
reports:
cobertura: target/site/cobertura/coverage.xml