From d702a8f07b9858652b58d21bbc6cbc9de6161c1a Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Mon, 7 Jan 2019 15:03:16 +0100 Subject: [PATCH] add coverage output for mypy --- .gitignore | 1 + .gitlab-ci.yml | 3 +++ README.md | 2 +- makefile | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 617d8b9..8ef66eb 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ +mypycov/ .tox/ .coverage .cache diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58c78ed..7368b20 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/README.md b/README.md index 463baa2..b0d8435 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/makefile b/makefile index 163c0e3..66eec0c 100644 --- a/makefile +++ b/makefile @@ -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"