add coverage output for mypy

This commit is contained in:
Manuel Barkhau 2019-01-07 15:03:16 +01:00
parent c85c80abda
commit d702a8f07b
4 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View file

@ -45,6 +45,7 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
mypycov/
.tox/
.coverage
.cache

View file

@ -15,6 +15,7 @@ unit:
artifacts:
paths:
- htmlcov/
- mypycov/
allow_failure: false
@ -22,7 +23,9 @@ pages:
stage: build
script:
- mkdir -p public/cov
- mkdir -p public/mypycov
- cp htmlcov/* public/cov/
- cp mypycov/* public/mypycov/
artifacts:
paths:
- public

View file

@ -728,7 +728,7 @@ order the version tags correctly.
[license_ref]: https://gitlab.com/mbarkhau/pycalver/blob/master/LICENSE
[mypy_img]: https://img.shields.io/badge/mypy-checked-green.svg
[mypy_ref]: http://mypy-lang.org/
[mypy_ref]: https://mbarkhau.gitlab.io/pycalver/mypycov
[style_img]: https://img.shields.io/badge/code%20style-%20sjfmt-f71.svg
[style_ref]: https://gitlab.com/mbarkhau/straitjacket/

View file

@ -301,7 +301,9 @@ mypy:
@rm -rf ".mypy_cache";
@printf "mypy ....\n"
@MYPYPATH=stubs/:vendor/ $(DEV_ENV_PY) -m mypy src/
@MYPYPATH=stubs/:vendor/ $(DEV_ENV_PY) -m mypy \
--html-report mypycov \
src/ | sed "/Generated HTML report/d"
@printf "\e[1F\e[9C ok\n"