Minor tweaks to circle testing

pull/2349/head
Philip O'Toole 2015-04-20 13:08:38 -07:00
parent 1502e3e901
commit 006b844419
1 changed files with 4 additions and 4 deletions

View File

@ -30,6 +30,7 @@ function go_get {
while [ $n -ne $retry_count ]; do while [ $n -ne $retry_count ]; do
go get -f -u -v ./... go get -f -u -v ./...
rc=$? rc=$?
echo "'go get -f -u -v' returned $rc on attempt #$n"
if [ $rc -eq 0 ]; then if [ $rc -eq 0 ]; then
break break
fi fi
@ -63,13 +64,12 @@ exit_if_fail go tool vet .
case $CIRCLE_NODE_INDEX in case $CIRCLE_NODE_INDEX in
0) 0)
go test $PARALLELISM $TIMEOUT -v ./... 2>&1 | tee $CIRCLE_ARTIFACTS/test_logs.txt go test $PARALLELISM $TIMEOUT -v ./... 2>&1 | tee $CIRCLE_ARTIFACTS/test_logs.txt
exit ${PIPESTATUS[0]} rc=${PIPESTATUS[0]}
;; ;;
1) 1)
go test $PARALLELISM $TIMEOUT -v -race ./... 2>&1 | tee $CIRCLE_ARTIFACTS/test_logs_race.txt go test $PARALLELISM $TIMEOUT -v -race ./... 2>&1 | tee $CIRCLE_ARTIFACTS/test_logs_race.txt
exit ${PIPESTATUS[0]} rc=${PIPESTATUS[0]}
;; ;;
esac esac
# Just to be nice. exit $rc
exit 0