diff --git a/.coveragerc b/.coveragerc index 3bffd79a..17fb730b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,4 @@ [run] branch = True -omit = /usr* +omit = /usr* /home/travis/virtualenv/* diff --git a/.travis.yml b/.travis.yml index e655e7c1..b3de1358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ python: - "2.6" - "2.7" install: - - "pip install pyinotify" + - pip install pyinotify + - if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then pip install -q coveralls; fi script: - - python ./fail2ban-testcases + - if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then coverage run fail2ban-testcases; else python ./fail2ban-testcases; fi +after_script: + - if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then coveralls; fi