Skip to content

Commit

Permalink
Use travis env vars to run kafka version tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Powers committed Aug 13, 2014
1 parent 141e2db commit 31e3c22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ python:
- 2.7
- pypy

env:
-
- KAFKA_VERSION=0.8.0
- KAFKA_VERSION=0.8.1

before_install:
- git submodule update --init --recursive
- sudo apt-get install libsnappy-dev
- ./build_integration.sh

Expand All @@ -19,5 +23,3 @@ install:

script:
- 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`
14 changes: 7 additions & 7 deletions build_integration.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

#git submodule update --init
#(cd servers/0.8.0/kafka-src && ./sbt update package assembly-package-dependency)
#(cd servers/0.8.1/kafka-src && ./gradlew jar)

SCALA_VERSION=2.8.0
KAFKA_VERSIONS="0.8.0 0.8.1 0.8.1.1"
if [ -z "$SCALA_VERSION" ]; then
SCALA_VERSION=2.8.0
fi
if [ -z "$KAFKA_VERSION" && -z "$TRAVIS" ]; then
KAFKA_VERSION="0.8.0 0.8.1"
fi
pushd servers
mkdir -p dist
pushd dist
for kafka in $KAFKA_VERSIONS; do
for kafka in $KAFKA_VERSION; do
echo "-------------------------------------"
echo "Checking kafka binaries for v${kafka}"
echo
Expand Down

0 comments on commit 31e3c22

Please sign in to comment.