From f4bdafa4dee8ed976f6c01c3a76bd9e6b8b4db18 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 14 Feb 2022 11:36:08 +0000 Subject: [PATCH] try to integrate coverage reports with gitlab --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eac74918..d6d97f79 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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