зеркало из https://github.com/github/octokit.py.git
Merge pull request #23 from octokit/howei-coverage
Code coverage + coveralls setup
This commit is contained in:
Коммит
6a5390fd49
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче