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')"