Skip to content
Snippets Groups Projects
Commit 3c472e32 authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Travis: Fix coverage reporting (hopefully)

parent e9f6b9ac
No related branches found
No related tags found
No related merge requests found
...@@ -6,12 +6,12 @@ python: ...@@ -6,12 +6,12 @@ python:
- "2.6" - "2.6"
- "2.7" - "2.7"
install: install:
- python setup.py install - python setup.py install
- pip install coverage coveralls - pip install coveralls
script: script:
- coverage run --source=mwclient setup.py test - python setup.py test
after_success: after_success:
- coveralls - coveralls
...@@ -17,7 +17,7 @@ class PyTest(TestCommand): ...@@ -17,7 +17,7 @@ class PyTest(TestCommand):
def initialize_options(self): def initialize_options(self):
TestCommand.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): def finalize_options(self):
TestCommand.finalize_options(self) TestCommand.finalize_options(self)
...@@ -54,7 +54,7 @@ setup(name='mwclient', ...@@ -54,7 +54,7 @@ setup(name='mwclient',
license='MIT', license='MIT',
packages=['mwclient'], packages=['mwclient'],
cmdclass={'test': PyTest}, 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, install_requires=requirements,
zip_safe=True zip_safe=True
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment