ci: Add a regex to parse line coverage statistics from genhtml output524d96fd92ff0a8d490bf45d67919d00f042ddc65/head
commit524d96fd92ff0a8d490bf45d67919d00f042ddc6
authorPhilip Withnall <withnall@endlessm.com>
Thu, 24 May 2018 22:43:03 +0000 (24 23:43 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Thu, 24 May 2018 22:44:53 +0000 (24 23:44 +0100)
treedc97fae978067a5a6a3df5931c724b159b7508c8
parentf92d179f778e80eb69098041e79bf13677f8bb07
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>
.gitlab-ci.yml