|
|
@ -29,7 +29,8 @@ before_install: |
|
|
|
- chmod +x docker-compose |
|
|
|
- chmod +x docker-compose |
|
|
|
- sudo mv docker-compose /usr/local/bin |
|
|
|
- sudo mv docker-compose /usr/local/bin |
|
|
|
# zookeeper |
|
|
|
# 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 |
|
|
|
# Skip the install step. Don't `go get` dependencies. Only build with the code |
|
|
|
# in vendor/ |
|
|
|
# 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 |
|
|
|
- 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 &" |
|
|
|
- nohup bash -c "$GOPATH/bin/discovery -conf $GOPATH/bin/discovery.toml &" |
|
|
|
# zookeeper |
|
|
|
# zookeeper |
|
|
|
- "sudo service zookeeper-server init" |
|
|
|
- ./zookeeper-3.5.4-beta/bin/zkServer.sh start ./zk/conf/zoo_sample.cfg 1> /dev/null |
|
|
|
- "sudo service zookeeper-server start" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
script: |
|
|
|
- go build ./... |
|
|
|
- go build ./... |
|
|
|