Skip to content

Commit

Permalink
ci: coverage improvements
Browse files Browse the repository at this point in the history
Use `expose_as` to link to the HTML report, and also attach the xml as a
cobertura artifact
  • Loading branch information
haasn committed Jun 2, 2020
1 parent 75124dc commit 208dd01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@ test-gpu:
- ninja coverage-xml
- grep -Eo 'line-rate="[^"]+"' meson-logs/coverage.xml | head -n 1 |
grep -Eo '[0-9.]+' | awk '{ print "coverage:", $1 * 100 } '
coverage: '/^coverage: (\d+.\d+)$/'
artifacts:
expose_as: 'Coverage HTML report'
paths:
- coverage
- coverage/
reports:
cobertura: build/meson-logs/coverage.xml

test-gpu-asan:
image: registry.videolan.org/libplacebo-ubuntu-eoan:20200521131745
Expand Down

0 comments on commit 208dd01

Please sign in to comment.