diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-05-24 23:43:03 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-05-24 23:44:53 +0100 |
commit | 524d96fd92ff0a8d490bf45d67919d00f042ddc6 (patch) | |
tree | dc97fae978067a5a6a3df5931c724b159b7508c8 /.gitlab-ci.yml | |
parent | f92d179f778e80eb69098041e79bf13677f8bb07 (diff) | |
download | glib-524d96fd92ff0a8d490bf45d67919d00f042ddc6.tar.gz |
ci: Add a regex to parse line coverage statistics from genhtml output
GitLab can then use this to annotate each pipeline with its code
coverage statistics. It can only use one figure, so we choose lines
(rather than function or branch coverage) since it’s the most intuitive
figure.
This parses the ‘lines’ line from output like:
Overall coverage rate:
lines......: 76.7% (108959 of 142122 lines)
functions..: 80.7% (10294 of 12763 functions)
branches...: 51.3% (50226 of 97953 branches)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to '.gitlab-ci.yml')
-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 6f63a7e1e..6947da2d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,7 @@ coverage: - _coverage/ script: - bash -x ./.gitlab-ci/coverage-docker.sh + coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/' pages: stage: deploy |