|
|
|
@ -31,6 +31,8 @@ |
|
|
|
|
# Builds Go interop server and client in a base image. |
|
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
go get google.golang.org/grpc |
|
|
|
|
|
|
|
|
|
# Clone just the grpc-go source code without any dependencies. |
|
|
|
|
# We are cloning from a local git repo that contains the right revision |
|
|
|
|
# to test instead of using "go get" to download from Github directly. |
|
|
|
@ -39,15 +41,6 @@ git clone --recursive /var/local/jenkins/grpc-go src/google.golang.org/grpc |
|
|
|
|
# copy service account keys if available |
|
|
|
|
cp -r /var/local/jenkins/service_account $HOME || true |
|
|
|
|
|
|
|
|
|
# Get dependencies from GitHub |
|
|
|
|
# NOTE: once grpc-go dependencies change, this needs to be updated manually |
|
|
|
|
# but we don't expect this to happen any time soon. |
|
|
|
|
go get github.com/golang/protobuf/proto |
|
|
|
|
go get golang.org/x/net/context |
|
|
|
|
go get golang.org/x/net/trace |
|
|
|
|
go get golang.org/x/oauth2 |
|
|
|
|
go get google.golang.org/cloud |
|
|
|
|
|
|
|
|
|
# Build the interop client and server |
|
|
|
|
(cd src/google.golang.org/grpc/interop/client && go install) |
|
|
|
|
(cd src/google.golang.org/grpc/interop/server && go install) |
|
|
|
|