Merge pull request #23 from octokit/howei-coverage

Code coverage + coveralls setup
This commit is contained in:
Timothy Chang 2015-11-17 16:42:01 -08:00
Родитель 8f7642523c ec8d8e4708
Коммит 6a5390fd49
3 изменённых файлов: 17 добавлений и 1 удалений

8
.coveragerc Normal file
Просмотреть файл

@ -0,0 +1,8 @@
[report]
exclude_lines =
pragma: no cover
# Don't complain about debug code
def __repr__
show_missing = True

Просмотреть файл

@ -7,11 +7,19 @@ python:
- "3.4"
- "3.5"
install:
# Coveralls 4.0 doesn't support Python 3.2
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
- pip install coveralls
env:
global:
- TRAVIS="True"
script: ./script/test
after_success:
coveralls
notifications:
email: false

Просмотреть файл

@ -17,4 +17,4 @@ done
export OCTOKIT_SILENT=true
echo "===> Running tests..."
(unset OCTOKIT_LOGIN; unset OCTOKIT_ACCESS_TOKEN; nosetests)
(unset OCTOKIT_LOGIN; unset OCTOKIT_ACCESS_TOKEN; nosetests --with-coverage --cover-package=octokit)