summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2014-02-15 15:20:59 +0000
committerSteven Hiscocks <steven@hiscocks.me.uk>2014-02-15 15:20:59 +0000
commitc6fc57d59474a0a7a92c714e0423f5e93c2d39af (patch)
tree8de620ffae439b174f1f5172e0e9135200ad6491 /.travis.yml
parentfceac53776027ee4d731e5357729b60f6fad0bc8 (diff)
downloadfail2ban-c6fc57d59474a0a7a92c714e0423f5e93c2d39af.tar.gz
TST: Fix TravisCI build for python2.7
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index ea84432e..4dafda11 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,13 +8,12 @@ python:
- "3.3"
- "pypy"
before_install:
- - sudo apt-get update -qq
+ - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then sudo apt-get update -qq; fi
install:
- pip install pyinotify
- - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then sudo apt-get install -qq python-gamin; fi
+ - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then sudo apt-get install -qq python-gamin; cp /usr/share/pyshared/gamin.py /usr/lib/pyshared/python2.7/_gamin.so $VIRTUAL_ENV/lib/python2.7/site-packages/; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -q coveralls; 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 setup.py test; else python setup.py test; fi
after_success:
# Coverage config file must be .coveragerc for coveralls