-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjvm-toolkit.yml
More file actions
44 lines (42 loc) · 1.07 KB
/
jvm-toolkit.yml
File metadata and controls
44 lines (42 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
.unit-tests:
tags:
- docker
- miquido
image: openjdk:8-jdk-alpine
script:
- ./gradlew test
- |
if [[ -f build/reports/jacoco/test/html/index.html ]]
then
cat build/reports/jacoco/test/html/index.html
fi
coverage: /Total.*?([0-9]{1,3})%/
artifacts:
when: always
reports:
junit: build/test-results/test/**/TEST-*.xml
paths:
- build/reports/jacoco/test/jacocoTestReport.xml
.visualize-coverage:
tags:
- docker
- miquido
variables:
SOURCE_ROOTS: "src/main/kotlin"
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
script:
# convert report from jacoco to cobertura
- |
python /opt/cover2cover.py \
build/reports/jacoco/test/jacocoTestReport.xml \
$SOURCE_ROOTS > cobertura.xml
# read the <source></source> tag
# and prepend the path to every filename attribute
- "python /opt/source2filename.py cobertura.xml"
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: python_app/coverage.xml
allow_failure: true