Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2022-05-18 19:49:50 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-05-25 10:30:04 +0300
commit8c74325a127089132beb515612b1e3682d9a814e (patch)
treefc87daaf1e130251c68763dc92587c7fc1097c36
parent2190ae184ce4fdbbc0166c23a3db75585778e674 (diff)
Gather total test coverage from the cover job
This commit adds a regexp to parse the total coverage from the test:coverage job so GitLab can show it gets shown in the UI and included in the coverage history of the project.
-rw-r--r--.gitlab-ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 80340ec29..94d9da7dd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -181,6 +181,7 @@ test:
test:coverage:
<<: *test_definition
needs: [ build ] # this job fails with permission errors if the caches from the build step are not in place
+ coverage: /^total:\t+\(statements\)\t+\d+\.\d+%$/
script:
# We need to explicitly build all prerequisites so that we can run tests unprivileged.
- make -j$(nproc) build prepare-tests $(pwd)/_build/tools/gocover-cobertura