ci: Integrate coverage with GitLab CI

This commit is contained in:
James Westman 2021-11-04 00:08:55 -05:00
parent a4b31f2cb0
commit a0ba59af77
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,4 +6,5 @@ gtk-blueprint-tool.pc
/.coverage /.coverage
/htmlcov /htmlcov
coverage.xml
.mypy_cache .mypy_cache

View file

@ -10,6 +10,7 @@ build:
- mypy gtkblueprinttool - mypy gtkblueprinttool
- coverage run -m unittest - coverage run -m unittest
- coverage html - coverage html
- coverage xml
- meson _build -Ddocs=true - meson _build -Ddocs=true
- ninja -C _build - ninja -C _build
- ninja -C _build test - ninja -C _build test
@ -18,6 +19,8 @@ build:
paths: paths:
- _build - _build
- htmlcov - htmlcov
reports:
cobertura: coverage.xml
pages: pages:
stage: pages stage: pages