TST+BF: Use separate coveragerc for Travis CI

Should now ignore server/filtergamin.py as gamin is not tested. Also
ignores Travis CI python virtual environments
pull/164/head
Steven Hiscocks 2013-03-29 20:14:13 +00:00
parent e0e116cb36
commit 0002fb4ca3
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[run]
branch = True
omit = /usr* /home/travis/virtualenv/*
omit = /usr*

View File

@ -9,6 +9,6 @@ install:
- pip install pyinotify
- if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then pip install -q coveralls; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then coverage run fail2ban-testcases; else python ./fail2ban-testcases; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then coverage run --rcfile=.travis_coveragerc fail2ban-testcases; else python ./fail2ban-testcases; fi
after_script:
- if [[ $TRAVIS_PYTHON_VERSION == 2.[6-7] ]]; then coveralls; fi

7
.travis_coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
omit =
/usr/*
/home/travis/virtualenv/*
server/filtergamin.py