CI: Include coverage data of code which isn't executed by the test suite.69ae2f424240f86c87a6756ae6e6a661d65b8cc7152/head
commit69ae2f424240f86c87a6756ae6e6a661d65b8cc7
authorChristoph Reiter <reiter.christoph@gmail.com>
Fri, 6 Jul 2018 07:33:22 +0000 (6 09:33 +0200)
committerChristoph Reiter <reiter.christoph@gmail.com>
Fri, 6 Jul 2018 07:36:01 +0000 (6 09:36 +0200)
tree5f6dcc07aeb365d36c479f52395154992985e197
parentc5321810f4d13f228fa5aacb103a1acf1f1578cb
CI: Include coverage data of code which isn't executed by the test suite.

See comment in !151. Using the "--initial" option of lcov we collect
the coverage of all compiled files and merge them later into the final
report. This way we can see which files are built but never executed
by the test suite.

Because the --initial switch also collects files in the ccache directory
we have to point it to the build directory instead, which in turn breaks
--no-external. Instead of using --no-external in the collection step,
filter out any files not in the source tree in the final coverage job
through a path filter.
.gitlab-ci.yml
.gitlab-ci/coverage-docker.sh
.gitlab-ci/test-msys2.sh