Skip to content

Commit 82a9f6d

Browse files
committed
Remove coverage step from CI
1 parent 28a32c2 commit 82a9f6d

1 file changed

Lines changed: 2 additions & 33 deletions

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ stages:
2727
- build
2828
- code-analysis
2929
- test
30-
- coverage
31-
- visualize
3230
- deploy:images
3331

3432
build:
@@ -55,15 +53,9 @@ test:
5553
script:
5654
- ./gradlew test
5755
- ./gradlew jacocoTestReport
58-
# Print test coverage to console (for coverage badge)
56+
# Print test coverage to console
5957
- cat build/reports/jacoco/test/html/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'
6058
coverage: "/Jacoco Coverage Total: ([0-9]{1,3})%/"
61-
artifacts:
62-
when: always
63-
reports:
64-
junit: build/test-results/test/**/TEST-*.xml
65-
paths:
66-
- build/reports/jacoco/test/jacocoTestReport.xml
6759

6860
integration-test:
6961
stage: test
@@ -73,34 +65,11 @@ integration-test:
7365
script:
7466
- DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock" TESTCONTAINERS_RYUK_DISABLED=true TESTCONTAINERS_CHECKS_DISABLE=true ./gradlew integrationTest
7567
- ./gradlew jacocoTestReport
76-
# Print test coverage to console (for coverage badge)
68+
# Print test coverage to console
7769
- cat build/reports/jacoco/test/html/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'
7870
coverage: "/Jacoco Coverage Total: ([0-9]{1,3})%/"
7971
dependencies:
8072
- test
81-
artifacts:
82-
when: always
83-
reports:
84-
junit: build/test-results/**/TEST-*.xml
85-
paths:
86-
- build/reports/jacoco/test/jacocoTestReport.xml
87-
88-
coverage:
89-
stage: visualize
90-
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
91-
script:
92-
# convert report from jacoco to cobertura
93-
- "python /opt/cover2cover.py build/reports/jacoco/test/jacocoTestReport.xml src/main/java > build/cobertura.xml"
94-
# read the <source></source> tag and prepend the path to every filename attribute
95-
- "python /opt/source2filename.py build/cobertura.xml"
96-
needs: ["test"]
97-
dependencies:
98-
- test
99-
artifacts:
100-
reports:
101-
coverage_report:
102-
coverage_format: cobertura
103-
path: build/cobertura.xml
10473

10574
push-dockerhub-native-mr:
10675
extends: .build-and-deploy-quarkus-native

0 commit comments

Comments
 (0)