CI: test coverage (for core) (#4832)

* test coverage

* update gitlab

add `git submodule update --init --recursive`

* test exec coverage in docker runner

* tags kcov
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-03-10 12:12:16 +03:00 committed by Gav Wood
parent aedc473f64
commit 608c0dc613

View File

@ -503,6 +503,18 @@ docker-build:
- sh scripts/docker-build.sh $DOCKER_TAG
tags:
- docker
test-coverage:
stage: test
only:
- coverage
script:
- git submodule update --init --recursive
- scripts/cov.sh
- COVERAGE=$(grep -Po 'covered":.*?[^\\]"' target/kcov/index.json | grep "[0-9]*\.[0-9]" -o)
- echo "Coverage:" $COVERAGE
tags:
- kcov
allow_failure: true
test-darwin:
stage: test
only: