Changed code coverage output and regex

This commit is contained in:
Johannes Feldmann
2018-12-18 17:24:15 +01:00
parent 2061877afa
commit 61342897ab

View File

@@ -28,12 +28,13 @@ build:
coverage:
stage: Coverage
coverage: '/^\s*lines(.)*:\s*\d+.\d+\%/'
coverage: '/Total:\|(\d+\.?\d+\%)/'
script:
# delete all empty files since they produce errors
- find coverage -size 0 -type f -delete
- ls -lah
- ls coverage/ -lah
- lcov `find coverage -type f -exec echo "-a {}" \;` -o coverage/final.out
- lcov --list coverage/final.out
artifacts:
paths:
- coverage/final.out