Browse Source

Minor tweaks to CI configuration

- provide more time for booting the cluster
- use recent point releases of golang rather than the original 1.x.0 releases
Evan Huus 10 năm trước cách đây
mục cha
commit
dc71c4c841
3 tập tin đã thay đổi với 7 bổ sung3 xóa
  1. 2 2
      .travis.yml
  2. 4 0
      vagrant/boot_cluster.sh
  3. 1 1
      vagrant/run_toxiproxy.sh

+ 2 - 2
.travis.yml

@@ -1,7 +1,7 @@
 language: go
 go:
-- 1.3
-- 1.4
+- 1.3.3
+- 1.4.2
 - tip
 
 env:

+ 4 - 0
vagrant/boot_cluster.sh

@@ -4,11 +4,15 @@ set -ex
 
 vagrant/run_toxiproxy.sh &
 
+sleep 5
+
 for i in 1 2 3 4 5; do
     KAFKA_PORT=`expr $i + 9090`
     cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
 done
 
+sleep 5
+
 for i in 1 2 3 4 5; do
     KAFKA_PORT=`expr $i + 9090`
     cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/kafka-server-start.sh -daemon config/server.properties

+ 1 - 1
vagrant/run_toxiproxy.sh

@@ -5,7 +5,7 @@ set -ex
 ${KAFKA_INSTALL_ROOT}/toxiproxy -port 8474 -host 0.0.0.0 &
 PID=$!
 
-sleep 2
+sleep 5
 
 wget -S --post-data='{"name":"zk1", "upstream":"localhost:21801", "listen":"0.0.0.0:2181"}' localhost:8474/proxies
 wget -S --post-data='{"name":"zk2", "upstream":"localhost:21802", "listen":"0.0.0.0:2182"}' localhost:8474/proxies