Skip to content

Commit b120ca5

Browse files
committed
Attempt to reenable py26 and pypy builds
1 parent 83d9571 commit b120ca5

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.travis.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: python
22

33
python:
4-
- 2.7
4+
- 2.6
5+
- 2.7
6+
- pypy
57

68
before_install:
7-
- git submodule update --init --recursive
8-
- sudo apt-get install libsnappy-dev
9-
- ./build_integration.sh
9+
- git submodule update --init --recursive
10+
- sudo apt-get install libsnappy-dev
11+
- ./build_integration.sh
1012

1113
install:
1214
- pip install tox
@@ -16,6 +18,6 @@ install:
1618
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
1719

1820
script:
19-
- tox -e py27
20-
- KAFKA_VERSION=0.8.0 tox -e py27
21-
- KAFKA_VERSION=0.8.1 tox -e py27
21+
- tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
22+
- KAFKA_VERSION=0.8.0 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
23+
- KAFKA_VERSION=0.8.1 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`

travis_selector.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
# This works with the .travis.yml file to select a python version for testing
3+
4+
if [ $1 == "pypy" ]; then
5+
echo "pypy"
6+
elif [ $1 == "2.7" ]; then
7+
echo "py27"
8+
elif [ $1 == "2.6" ]; then
9+
echo "py26"
10+
else
11+
echo $1
12+
fi;

0 commit comments

Comments
 (0)