-
Notifications
You must be signed in to change notification settings - Fork 115
/
.travis.yml
51 lines (45 loc) · 1.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# .travis.yaml contains YAML-formatted (http://www.yaml.org/) build
# instructions for continuous integration via Travis CI
# (http://docs.travis-ci.com/).
#
language: python
addons:
apt:
sources:
- deadsnakes
packages:
- python2.4-dev
- python2.5-dev
- python2.6-dev
- python2.7-dev
env:
global:
- BEANSTALKD=./beanstalkd
matrix:
- PYV=2.4 ST=https://raw.githubusercontent.com/pypa/setuptools/bootstrap-py24/ez_setup.py
- PYV=2.5 ST=https://raw.githubusercontent.com/pypa/setuptools/bootstrap-py24/ez_setup.py
- PYV=2.6 ST=https://bootstrap.pypa.io/ez_setup.py
- PYV=2.7 ST=https://bootstrap.pypa.io/ez_setup.py
install:
# Deactivate the virtualenv enabled by `language: python`.
- deactivate
# Install most recent beanstalkd from source
- wget https://github.com/kr/beanstalkd/archive/v1.10.tar.gz
- tar xf v1.10.tar.gz
- make -C beanstalkd-1.10/
- mv beanstalkd-1.10/beanstalkd .
# Bootstrap easy_install ...
- wget -O /tmp/ez_setup.py $ST
- sudo python$PYV /tmp/ez_setup.py
# ... to use easy_install to install pip (1.1 works on 2.4) ...
- sudo easy_install-$PYV pip==1.1
# ... to use pip to install beanstalkc's dependencies ...
- sudo pip-$PYV install http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz
# ... and tes testing dependencies.
- sudo pip-$PYV install nose
script: nosetests-$PYV -c .nose.cfg
branches:
only:
- master
- preflight