summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-10 16:20:27 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-10 16:20:27 +0100
commita378db97e9f14bfa81bd490186c065d77f5806c7 (patch)
treeea27b44c9b1c18ef7ee55fc341d185962b9b9f8a /.gitlab-ci.yml
parent6cebc7aa1aecb1bc8f87443887a90fe851893954 (diff)
parente0186e39a45a2987cbf76bfafa4b95596009da02 (diff)
downloadEAAF-Components-a378db97e9f14bfa81bd490186c065d77f5806c7.tar.gz
EAAF-Components-a378db97e9f14bfa81bd490186c065d77f5806c7.tar.bz2
EAAF-Components-a378db97e9f14bfa81bd490186c065d77f5806c7.zip
Merge branch 'feature/codecoverage' into 'nightlyBuild'
some more code-coverage extraction test for GitLab CI See merge request egiz/eaaf_components!7
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9ec05060..f6db61b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "2"
SECURE_LOG_LEVEL: "debug"
+ JACOCO_CSV_LOCATION: 'build_reporting/target/site/jacoco-aggregate-ut/jacoco.csv'
include:
- template: Dependency-Scanning.gitlab-ci.yml
@@ -39,6 +40,7 @@ assemble:
junit: "**/target/surefire-reports/TEST-*.xml"
paths:
- build_reporting/target/site/jacoco-aggregate-ut/jacoco.xml
+ - build_reporting/target/site/jacoco-aggregate-ut/jacoco.csv
coverage:
stage: visualize
@@ -49,6 +51,7 @@ coverage:
- 'python /opt/cover2cover.py build_reporting/target/site/jacoco-aggregate-ut/jacoco.xml eaaf_core_api/src/main/java eaaf_core_utils/src/main/java eaaf_core/src/main/java eaaf_modules/eaaf_module_auth_sl20/src/main/java eaaf_modules/eaaf_module_moa-sig/src/main/java eaaf_modules/eaaf_module_pvp2_core/src/main/java eaaf_modules/eaaf_module_pvp2_idp/src/main/java eaaf_modules/eaaf_module_pvp2_sp/src/main/java > target/site/cobertura.xml'
# read the <source></source> tag and prepend the path to every filename attribute
#- 'python /opt/source2filename.py target/site/cobertura.xml'
+ - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' $JACOCO_CSV_LOCATION
needs:
- job: assemble
dependencies: