ci: Add coverage

This commit is contained in:
James Westman 2022-04-30 16:04:50 -05:00
parent f479e2bac5
commit 4e1398f238
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -8,6 +8,7 @@ build:
script: script:
- mypy blueprintcompiler - mypy blueprintcompiler
- coverage run -m unittest - coverage run -m unittest
- coverage report
- coverage html - coverage html
- coverage xml - coverage xml
- meson _build -Ddocs=true - meson _build -Ddocs=true
@ -18,6 +19,7 @@ build:
- cd blueprint-regression-tests - cd blueprint-regression-tests
- ./test.sh - ./test.sh
- cd .. - cd ..
coverage: '/TOTAL.*\s([.\d]+)%/'
artifacts: artifacts:
paths: paths:
- _build - _build