diff --git a/.gitignore b/.gitignore index 38c6a6d..0dd8fdb 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,8 @@ pip-log.txt .coverage .tox nosetests.xml +coverage.xml +htmlcov # Translations *.mo diff --git a/.travis.yml b/.travis.yml index fa1ce8b..7763dc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ python: - "2.7" install: - pip install -r requirements.txt + - pip install coveralls script: - python setup.py test - python setup.py flake8 +after_success: + - coveralls diff --git a/setup.py b/setup.py index c421807..9f82e3e 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,7 @@ def setup_package(): install_reqs = get_install_requirements('requirements.txt') - command_options = {} + command_options = {'test': {'cov': ('setup.py', MAIN_MODULE), 'cov_xml': ('setup.py', True)}} setup( name=NAME,