From 2a4c47ea32b2e483746c757896ff0d63a1403f6b Mon Sep 17 00:00:00 2001 From: sebres Date: Fri, 21 Sep 2018 14:47:40 +0200 Subject: [PATCH] .travis.yml: coveralls doesn't support python 2.6 now --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16a71249..ebfcd68e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,8 +29,11 @@ install: # Install Python packages / dependencies # coverage - travis_retry pip install coverage - # coveralls - - travis_retry pip install coveralls codecov + # coveralls (note coveralls doesn't support 2.6 now): + - if [[ $TRAVIS_PYTHON_VERSION != 2.6* ]]; then F2B_COV=1; else F2B_COV=0; fi + - if [[ "$F2B_COV" = 1 ]]; then travis_retry pip install coveralls; fi + # codecov: + - travis_retry pip install codecov # dnspython or dnspython3 - if [[ "$F2B_PY" = 2 ]]; then travis_retry pip install dnspython; fi - if [[ "$F2B_PY" = 3 ]]; then travis_retry pip install dnspython3; fi @@ -51,7 +54,7 @@ script: # Doc files should get installed on Travis under Linux - test -e /usr/share/doc/fail2ban/FILTERS after_success: - - coveralls + - if [[ "$F2B_COV" = 1 ]]; then coveralls; fi - codecov matrix: fast_finish: true