From a45467ac910e788936a2570ca8be1328daac7179 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 15 Apr 2014 23:40:09 -0400 Subject: [PATCH] ENH: run travis with both 'error' and 'heavydebug' levels to ease troubleshooting of failures --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 398411bf..17ae2495 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ language: python python: - "2.6" - "2.7" +env: + - LOG_LEVEL=error + - LOG_LEVEL=heavydebug before_install: - sudo apt-get update -qq install: @@ -12,6 +15,6 @@ install: - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then cd ..; pip install -q coveralls; cd -; fi script: - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then export PYTHONPATH="$PYTHONPATH:/usr/share/pyshared:/usr/lib/pyshared/python2.7"; fi - - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coverage run --rcfile=.travis_coveragerc fail2ban-testcases; else python ./fail2ban-testcases; fi + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]] && [ $LOG_LEVEL == heavydebug ]; then coverage run --rcfile=.travis_coveragerc fail2ban-testcases -l $LOG_LEVEL; else python ./fail2ban-testcases -l $LOG_LEVEL; fi after_success: - - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi + - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]] && [ $LOG_LEVEL == heavydebug ]; then coveralls; fi