Skip to content

Commit

Permalink
Measure coverage simply in publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquev6 committed Nov 22, 2012
1 parent 3026eb7 commit be37b8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ GithubCredentials.py
/dist/
/build/
/MANIFEST
/PyGithub.egg-info/
/PyGithub.egg-info/
/.coverage
6 changes: 5 additions & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
Expand Down

0 comments on commit be37b8a

Please sign in to comment.