diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2022-05-18 19:49:50 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2022-05-25 10:30:04 +0300 |
commit | 8c74325a127089132beb515612b1e3682d9a814e (patch) | |
tree | fc87daaf1e130251c68763dc92587c7fc1097c36 | |
parent | 2190ae184ce4fdbbc0166c23a3db75585778e674 (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.yml | 1 |
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 |