From a1ebd91257066d017e219b1a49db593daed4c0a4 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 5 Nov 2019 13:59:20 +0800 Subject: [PATCH] fix zk download --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb8840993..c0d6dd93d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,8 @@ before_install: - chmod +x docker-compose - sudo mv docker-compose /usr/local/bin # zookeeper - - "sudo apt-get install -y zookeeper-server" + - wget "http://apache.cs.utah.edu/zookeeper/zookeeper-${ZK_VERSION}/zookeeper-3.5.4-beta.tar.gz" + - tar -xvf "zookeeper-3.5.4-beta.tar.gz" # Skip the install step. Don't `go get` dependencies. Only build with the code # in vendor/ @@ -45,8 +46,7 @@ before_script: - curl -sfL https://raw.githubusercontent.com/bilibili/discovery/master/cmd/discovery/discovery-example.toml -o $GOPATH/bin/discovery.toml - nohup bash -c "$GOPATH/bin/discovery -conf $GOPATH/bin/discovery.toml &" # zookeeper - - "sudo service zookeeper-server init" - - "sudo service zookeeper-server start" + - ./zookeeper-3.5.4-beta/bin/zkServer.sh start ./zk/conf/zoo_sample.cfg 1> /dev/null script: - go build ./...