From 608c0dc613ea6d1ec4c8ddb50a1100d1de008a85 Mon Sep 17 00:00:00 2001 From: "Denis S. Soldatov aka General-Beck" Date: Fri, 10 Mar 2017 12:12:16 +0300 Subject: [PATCH] CI: test coverage (for core) (#4832) * test coverage * update gitlab add `git submodule update --init --recursive` * test exec coverage in docker runner * tags kcov --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32cb7e947..e71b99ec0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: