try to integrate coverage reports with gitlab

auto-update
Zlatin Balevsky 2022-02-14 11:36:08 +00:00
parent 6d89d6f36a
commit f4bdafa4de
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,11 @@
# https://gradle.org/
# https://github.com/gradle/gradle
stages:
- build
- test
- visualize
image: gradle:alpine
# Disable the Gradle daemon for Continuous Integration servers as correctness
@ -39,3 +44,12 @@ test:
- build
- .gradle
coverage:
stage: visualize
image: haynes/jacoco2cobertura:1.0.7
script:
- 'python /opt/cover2cover.py core/build/reports/jacoco/test/jacocoTestReport.xml $CI_PROJECT_DIR/core/src > core/build/reports/coberturaTesTReport.xml'
needs: ["test"]
artifacts:
reports:
cobertura: core/build/reports/coberturaTesTReport.xml