Merge pull request #17960 from pmorie/travis-verify-codec

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-12-15 23:19:50 -08:00
commit df8efcf582

View File

@ -83,18 +83,8 @@ for (( i=0; i<number; i++ )); do
done
index=(${result})
# Build codecgen from Godeps.
# However, we need to install godep first.
# We make some tricks with GOPATH variable to make it work with Travis.
_gopath=${GOPATH}
export GOPATH="${_tmpdir}"
go get -u github.com/tools/godep 2>/dev/null
go install github.com/tools/godep 2>/dev/null
GODEP="${_tmpdir}/bin/godep"
export GOPATH=${_gopath}
CODECGEN="${_tmpdir}/codecgen_binary"
${GODEP} go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen
godep go build -o "${CODECGEN}" github.com/ugorji/go/codec/codecgen
# Generate files in the dependency order.
for current in ${index[@]}; do