summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Roberts <wizzat@gmail.com>2014-05-01 10:27:30 -0700
committerMark Roberts <wizzat@gmail.com>2014-05-01 10:27:30 -0700
commitb120ca5d72fe401d9f73b647616a16742600ace2 (patch)
treeea0e54afed083de3dae7a4b254b87bb45273e76d
parent83d95710e536880b278bf5429fa2f89f753d05d1 (diff)
downloadkafka-python-b120ca5d72fe401d9f73b647616a16742600ace2.tar.gz
Attempt to reenable py26 and pypy builds
-rw-r--r--.travis.yml16
-rwxr-xr-xtravis_selector.sh12
2 files changed, 21 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 4ec5802..bd5f63a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,14 @@
language: python
python:
- - 2.7
+ - 2.6
+ - 2.7
+ - pypy
before_install:
- - git submodule update --init --recursive
- - sudo apt-get install libsnappy-dev
- - ./build_integration.sh
+ - git submodule update --init --recursive
+ - sudo apt-get install libsnappy-dev
+ - ./build_integration.sh
install:
- pip install tox
@@ -16,6 +18,6 @@ install:
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
script:
- - tox -e py27
- - KAFKA_VERSION=0.8.0 tox -e py27
- - KAFKA_VERSION=0.8.1 tox -e py27
+ - tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
+ - KAFKA_VERSION=0.8.0 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
+ - KAFKA_VERSION=0.8.1 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION`
diff --git a/travis_selector.sh b/travis_selector.sh
new file mode 100755
index 0000000..21fba7e
--- /dev/null
+++ b/travis_selector.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# This works with the .travis.yml file to select a python version for testing
+
+if [ $1 == "pypy" ]; then
+ echo "pypy"
+elif [ $1 == "2.7" ]; then
+ echo "py27"
+elif [ $1 == "2.6" ]; then
+ echo "py26"
+else
+ echo $1
+fi;