Merge pull request #164 from kwirk/coveralls

TST+BF: Use separate coveragerc for Travis CI
pull/128/merge
Yaroslav Halchenko 2013-03-29 13:32:29 -07:00
commit 74e76e068c
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