Measure coverage simply in publish.sh

This commit is contained in:
Vincent Jacques
2012-11-22 20:06:01 +01:00
parent 3026eb708f
commit be37b8a7f3
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -3,4 +3,5 @@ GithubCredentials.py
/dist/
/build/
/MANIFEST
/PyGithub.egg-info/
/PyGithub.egg-info/
/.coverage
+5 -1
View File
@@ -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')"