diff --git a/.travis.yml b/.travis.yml index 992fb43..5fd1597 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,13 +22,14 @@ addons: before_script: - service zookeeper start - - wget http://supergsego.com/apache/kafka/0.11.0.1/kafka_2.11-0.11.0.1.tgz - - tar xvzf kafka_2.11-0.11.0.1.tgz - - ./kafka_2.11-0.11.0.1/bin/kafka-server-start.sh ./kafka_2.11-0.11.0.1/config/server.properties > /dev/null 2> /dev/null & + - KAFKA_VERSION=2.11-1.0.0 + - wget http://apache.cs.utah.edu/kafka/1.0.0/kafka_$KAFKA_VERSION.tgz + - tar xvzf kafka_$KAFKA_VERSION.tgz + - ./kafka_$KAFKA_VERSION/bin/kafka-server-start.sh ./kafka_$KAFKA_VERSION/config/server.properties > /dev/null 2> /dev/null & - git clone https://github.com/edenhill/librdkafka.git - while ! echo "asd" | nc localhost 9092; do sleep 1; done - - ./kafka_2.11-0.11.0.1/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test1 --partitions 3 --replication-factor 1 - - ./kafka_2.11-0.11.0.1/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test2 --partitions 3 --replication-factor 1 + - ./kafka_$KAFKA_VERSION/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test1 --partitions 3 --replication-factor 1 + - ./kafka_$KAFKA_VERSION/bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic cppkafka_test2 --partitions 3 --replication-factor 1 script: - cd librdkafka