diff --git a/.travis.yml b/.travis.yml index 6cf9485..c83df44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +sudo: false python: - "2.6" - "2.7" @@ -8,15 +9,16 @@ python: - "nightly" # command to install dependencies install: - - "pip install flake8 mock ." + - "pip install flake8 mock coveralls ." # command to run tests script: - "flake8 --ignore=E501 ." - - "py.test" + - "coverage run --source=itunesiap setup.py test" +after_success: + - "coveralls" matrix: allow_failures: - python: - pypy - pypy3 - nightly -sudo: false diff --git a/README.rst b/README.rst index 8a6e474..751ff31 100644 --- a/README.rst +++ b/README.rst @@ -3,6 +3,7 @@ itunes-iap v2 .. image:: https://travis-ci.org/youknowone/itunes-iap.svg?branch=master :target: https://travis-ci.org/youknowone/itunes-iap +.. image:: https://coveralls.io/repos/github/youknowone/itunes-iap/badge.svg?branch=master :target: https://coveralls.io/github/youknowone/itunes-iap?branch=master Note for v1 users ----------------- diff --git a/setup.py b/setup.py index 83cf596..764f915 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ def get_readme(): install_requires=[ 'requests[security]', 'prettyexc>=0.6.0', 'six', 'pytz', 'python-dateutil', ], + setup_requires=['pytest-runner'], tests_require=[ 'pytest', 'tox', 'mock', 'patch', ],