Permalink
Browse files

Test with custom-built beanstalkd 1.8 on Travis CI

Our testsuite tests features only available with beanstalkd 1.8+. To
make this dependency explicit, we now build beanstalkd from source on
Travis CI instead of relying on on distro-provided packages.
  • Loading branch information...
1 parent 40f1bfe commit 5eb8dd744dce9c94a653dca782873724bd9feb8e @earl committed Jan 8, 2013
Showing with 15 additions and 3 deletions.
  1. +12 −1 .travis.yml
  2. +3 −2 test/fixtures.py
View
13 .travis.yml
@@ -1,11 +1,22 @@
language: python
+
python:
- "2.6"
- "2.7"
+env:
+ global:
+ - BEANSTALKD=./beanstalkd
+
install:
- - sudo apt-get install beanstalkd
+ # Install most recent beanstalkd from source
+ - wget https://github.com/downloads/kr/beanstalkd/beanstalkd-1.8.tar.gz
+ - tar xf beanstalkd-1.8.tar.gz
+ - make -C beanstalkd-1.8/
+ - mv beanstalkd-1.8/beanstalkd .
+ # Install Python dependencies.
- pip install -r .travis-requirements.txt --use-mirrors
+
script: nosetests -c .nose.cfg
branches:
View
5 test/fixtures.py
@@ -3,10 +3,11 @@
_BEANSTALKD_PID = None
def setup(module):
+ beanstalkd = os.getenv('BEANSTALKD', 'beanstalkd')
module._BEANSTALKD_PID = os.spawnlp(
os.P_NOWAIT,
- 'beanstalkd',
- 'beanstalkd', '-l', '127.0.0.1', '-p', '14711')
+ beanstalkd,
+ beanstalkd, '-l', '127.0.0.1', '-p', '14711')
time.sleep(0.5) # Give beanstalkd some time to ready.
def teardown(module):

0 comments on commit 5eb8dd7

Please sign in to comment.