Merge branch 'non-atomicity-of-g_file_set_contents' into 'master'
[glib.git] / .gitlab-ci / coverage-docker.sh
blob49118d606ab56a0571a49a56287d80df983b084d
1 #!/bin/bash
3 set -e
5 # Fixup Windows paths
6 python3 ./.gitlab-ci/fixup-cov-paths.py _coverage/*.lcov
8 # Remove coverage from generated code in the build directory
9 for path in _coverage/*.lcov; do
10 lcov --rc lcov_branch_coverage=1 -r "${path}" '*/_build/*' -o "$(pwd)/${path}"
11 done
13 genhtml \
14 --ignore-errors=source \
15 --rc lcov_branch_coverage=1 \
16 _coverage/*.lcov \
17 -o _coverage/coverage
19 cd _coverage
20 rm -f *.lcov
22 cat >index.html <<EOL
23 <html>
24 <body>
25 <ul>
26 <li><a href="coverage/index.html">Coverage</a></li>
27 </ul>
28 </body>
29 </html>
30 EOL