From 3c472e32daac5671dd2b6ee5eab5e7813feac078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com> Date: Sat, 18 Jul 2015 23:46:39 +0200 Subject: [PATCH] Travis: Fix coverage reporting (hopefully) --- .travis.yml | 8 ++++---- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 74bb9f7..28eef4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,12 +6,12 @@ python: - "2.6" - "2.7" -install: +install: - python setup.py install - - pip install coverage coveralls + - pip install coveralls -script: - - coverage run --source=mwclient setup.py test +script: + - python setup.py test after_success: - coveralls diff --git a/setup.py b/setup.py index 70fcdc9..570bc4d 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = '-v --pep8 tests mwclient' + self.pytest_args = '-v --pep8 tests mwclient --cov mwclient' def finalize_options(self): TestCommand.finalize_options(self) @@ -54,7 +54,7 @@ setup(name='mwclient', license='MIT', packages=['mwclient'], cmdclass={'test': PyTest}, - tests_require=['pytest-pep8', 'pytest-cache', 'pytest', 'responses>=0.3.0'], + tests_require=['pytest-pep8', 'pytest-cache', 'pytest', 'pytest-cov', 'funcsigs', 'responses>=0.3.0'], install_requires=requirements, zip_safe=True ) -- GitLab