]> git.ipfire.org Git - thirdparty/bind9.git/commit
Enable Test Coverage Visualization for merge requests
authorMichal Nowak <mnowak@isc.org>
Thu, 22 Oct 2020 07:36:17 +0000 (09:36 +0200)
committerMichal Nowak <mnowak@isc.org>
Tue, 27 Oct 2020 15:15:39 +0000 (16:15 +0100)
commit4cb5c3004dfd26324b3469293463460db340a1e0
tree4e9b41ab6505cef4c6833b666370286d9c30403b
parentd456de2b033ca3558cc34fcd8fdd6589bfd04a96
Enable Test Coverage Visualization for merge requests

This feature allows GitLab to visualize test coverage information in the
file diff view of merge requests.

This commit makes the gcov CI job depend on the following chain of jobs:

    gcc:buster:amd64 → unit:gcc:buster:amd64 → system:gcc:buster:amd64

The reason for running the last two jobs above sequentially rather than
in parallel is that both of them create *.gcda files (containing
coverage data) in the same locations.  While some way of merging these
files from different job artifact archives could probably be designed
with the help of additional tools, the simplest thing to do is not to
run unit test and system test jobs in parallel, carrying *.gcda files
over between jobs as gcov knows how to append coverage data to existing
*.gcda files.

Also note that test coverage will not be visualized if any of the jobs
in the above dependency chain fails (because the gcov job will not be
run).

(cherry picked from commit 2dabf328c406036e012a9b0b30ed952785565d51)
.gitlab-ci.yml