Merge pull request #7495 from dsnet/master
Fix integration tests for Go examples
This commit is contained in:
commit
7e7777e8a1
5
tests.sh
5
tests.sh
@ -163,10 +163,13 @@ build_golang() {
|
||||
|
||||
export GOPATH="$HOME/gocode"
|
||||
mkdir -p "$GOPATH/src/github.com/protocolbuffers"
|
||||
mkdir -p "$GOPATH/src/github.com/golang"
|
||||
rm -f "$GOPATH/src/github.com/protocolbuffers/protobuf"
|
||||
rm -f "$GOPATH/src/github.com/golang/protobuf"
|
||||
ln -s "`pwd`" "$GOPATH/src/github.com/protocolbuffers/protobuf"
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
go get github.com/golang/protobuf/protoc-gen-go
|
||||
(cd $GOPATH/src/github.com/golang && git clone https://github.com/golang/protobuf.git && cd protobuf && git checkout v1.3.5)
|
||||
go install github.com/golang/protobuf/protoc-gen-go
|
||||
|
||||
cd examples && PROTO_PATH="-I../src -I." make gotest && cd ..
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user