Changeset View
Changeset View
Standalone View
Standalone View
.gitlab-ci.yml
Show All 21 Lines | |||||
before_script: | before_script: | ||||
- ./gradlew --no-daemon clean 2> >(grep ZipFile && rm -rf /cache/.gradle/wrapper/dists/*) | - ./gradlew --no-daemon clean 2> >(grep ZipFile && rm -rf /cache/.gradle/wrapper/dists/*) | ||||
junit: | junit: | ||||
stage: test | stage: test | ||||
image: clovisai/wildfyre-java:latest # The image created in src/test/Dockerfile | image: clovisai/wildfyre-java:latest # The image created in src/test/Dockerfile | ||||
script: | script: | ||||
- ./api.sh | - ./api.sh | ||||
- ./gradlew --no-daemon test | - ./gradlew --no-daemon test coverage | ||||
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' build/reports/jacoco/test/jacocoTestReport.csv | |||||
artifacts: | artifacts: | ||||
reports: | reports: | ||||
junit: build/test-results/test/TEST-*.xml | junit: build/test-results/test/TEST-*.xml | ||||
paths: | paths: | ||||
- build/reports/tests/test | - build/reports/tests/test | ||||
- build/jacocoHtml | |||||
coverage: '/\d+\.\d+ % covered/' | |||||
static-analysis: | static-analysis: | ||||
stage: test | stage: test | ||||
image: clovisai/wildfyre-java:latest | image: clovisai/wildfyre-java:latest | ||||
script: | script: | ||||
- ./gradlew --no-daemon findbugsMain findbugsTest | - ./gradlew --no-daemon findbugsMain findbugsTest | ||||
artifacts: | artifacts: | ||||
paths: | paths: | ||||
Show All 11 Lines |