mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +00:00
12 lines
670 B
YAML
12 lines
670 B
YAML
build:
|
|
script:
|
|
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp checkstyle:check
|
|
- mvn -Dmaven.repo.local=/tmp/m2/repository -Duser.home=/tmp test
|
|
- 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:
|
|
cobertura: target/site/cobertura.xml
|