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:
parent
aedc473f64
commit
608c0dc613
@ -503,6 +503,18 @@ docker-build:
|
|||||||
- sh scripts/docker-build.sh $DOCKER_TAG
|
- sh scripts/docker-build.sh $DOCKER_TAG
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- 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:
|
test-darwin:
|
||||||
stage: test
|
stage: test
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user