Fix Travis CI.

This commit is contained in:
Ben Johnson 2014-01-08 16:41:01 -07:00
parent 8d25dac1ba
commit 355bd6df9b
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
language: go
go: 1.1
go: 1.2
install:
- echo "Skip install"

View File

@ -5,6 +5,10 @@ if [ -z "$PKG" ]; then
PKG="./store ./server ./server/v2/tests ./mod/lock/v2/tests"
fi
if [ -z "$RUN" ]; then
RUN="."
fi
# Get GOPATH, etc from build
. ./build
@ -15,9 +19,9 @@ export GOPATH="${PWD}"
for i in $PKG
do
go test -i $i
go test -v $i
go test -v -test.run=$RUN $i
done
# Functional tests
go test -i ./tests/functional
ETCD_BIN_PATH=$(pwd)/etcd go test -v ./tests/functional
ETCD_BIN_PATH=$(pwd)/etcd go test -v -test.run=$RUN ./tests/functional