From f53c8220c40d438287c4d1518f0d9245bc62a2f8 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 23 Nov 2020 12:30:26 -0700 Subject: [PATCH] GITLAB_CI: Add coverage highlighting Signed-off-by: Taylor Smock --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e25b053..1959fe4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -134,6 +134,16 @@ test: junit: build/test-results/**/TEST-*.xml needs: ["assemble"] +coverage: + stage: deploy + needs: ["test"] + image: haynes/jacoco2cobertura:1.0.3 + script: + - 'python /opt/cover2cover.py build/reports/jacoco/test/jacocoTestReport.xml src/main/java > build/reports/jacoco/test/coverage.xml' + artifacts: + reports: + cobertura: "build/reports/jacoco/test/coverage.xml" + compile against min JOSM: stage: test script: