From be37b8a7f3a68631c32672dcd84d9eba27438ee6 Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Thu, 22 Nov 2012 20:06:01 +0100 Subject: [PATCH] Measure coverage simply in publish.sh --- .gitignore | 3 ++- publish.sh | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 681fb61f..55cb5a84 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ GithubCredentials.py /dist/ /build/ /MANIFEST -/PyGithub.egg-info/ \ No newline at end of file +/PyGithub.egg-info/ +/.coverage diff --git a/publish.sh b/publish.sh index 131eb67c..f3adf2bd 100755 --- a/publish.sh +++ b/publish.sh @@ -2,7 +2,11 @@ # -*- coding: utf-8 -*- pep8 --ignore=E501 github *.py # pip install pep8 -python setup.py test + +python3 setup.py test + +coverage run --branch "--include=github/*.py" "--omit=github/tests/*.py" setup.py test +coverage report --show-missing previousVersion=$( grep 'version =' setup.py | sed 's/.*version = \"\(.*\)\".*/\1/' ) echo "Next version number? (previous: '$previousVersion')"