Add Python 3 and PyPy to .travis.yml

This commit is contained in:
Ben Firshman 2014-01-06 13:06:00 +00:00
parent 31f0907732
commit 0760ea1b00
2 changed files with 19 additions and 10 deletions

View File

@ -2,17 +2,10 @@ language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
install:
- sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
- sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
- sudo apt-get update
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
- sudo chmod +x /usr/sbin/policy-rc.d
- sudo apt-get install -qy slirp lxc lxc-docker=0.7.3
- git clone git://github.com/jpetazzo/sekexe
- python setup.py install
- pip install -r requirements-dev.txt
install: script/travis-install
script:
- pwd

16
script/travis-install Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
echo exit 101 | sudo tee /usr/sbin/policy-rc.d
sudo chmod +x /usr/sbin/policy-rc.d
sudo apt-get install -qy slirp lxc lxc-docker=0.7.3
git clone git://github.com/jpetazzo/sekexe
python setup.py install
pip install -r requirements-dev.txt
if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then
pip install unittest2
fi