]> 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 14:57:06 +0000 (15:57 +0100)
commit2c9892ed1ddbc5c285c92edf376094053efad740
tree24b826e689ac32b3026967a5ab6c53bd5d74eea8
parent93efe7685cb98f25cbfa1f7b199a2af472d3f453
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