From 8bf762057982ccb873d644e7c24025ac3b4e193d Mon Sep 17 00:00:00 2001 From: Jeppe Klitgaard Date: Mon, 6 Apr 2015 02:29:55 +0200 Subject: [PATCH] Updated coveralls, now it will run even when cover build fails --- .travis.yml | 2 +- bin/generate_travis_yml.py | 2 +- tox.ini | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) 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 =