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