diff --git a/.travis.yml b/.travis.yml index cf7e039..7085b79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,6 @@ install: script: - tox -e $TOX_ENV after_success: - - if [ "$TOX_ENV" = "cover" ]; then coveralls; fi + - if [ "$TOX_ENV" = "coveralls" ]; then coveralls; fi notifications: email: false diff --git a/bin/generate_travis_yml.py b/bin/generate_travis_yml.py index 0e2832c..75c0cd2 100644 --- a/bin/generate_travis_yml.py +++ b/bin/generate_travis_yml.py @@ -14,6 +14,6 @@ print(" - pip install python-coveralls") print("script:") print(" - tox -e $TOX_ENV") print("after_success:") -print(' - if [ "$TOX_ENV" = "cover" ]; then coveralls; fi') +print(' - if [ "$TOX_ENV" = "coveralls" ]; then coveralls; fi') print("notifications:") print(" email: false") diff --git a/tox.ini b/tox.ini index fa177d0..d8514cb 100644 --- a/tox.ini +++ b/tox.ini @@ -33,6 +33,15 @@ deps = coverage nosexcover +[testenv:coveralls] +basepython = {[testenv:cover]basepython} +commands = + {[testenv:cover]commands} + coveralls +deps = + {[testenv:cover]deps} + coveralls + [testenv:flake8] basepython = python3.4 commands =