fix zk download

pull/412/head
Tony 5 years ago
parent d9d2b56c2e
commit a1ebd91257
  1. 6
      .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 ./...

Loading…
Cancel
Save