Permalink
Browse files

Measure coverage simply in publish.sh

  • Loading branch information...
1 parent 3026eb7 commit be37b8a7f3a68631c32672dcd84d9eba27438ee6 @jacquev6 jacquev6 committed Nov 22, 2012
Showing with 7 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +5 −1 publish.sh
View
3 .gitignore
@@ -3,4 +3,5 @@ GithubCredentials.py
/dist/
/build/
/MANIFEST
-/PyGithub.egg-info/
+/PyGithub.egg-info/
+/.coverage
View
6 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')"

0 comments on commit be37b8a

Please sign in to comment.