Merge pull request #3957 from gyuho/travis_matrix

travis, test: allow failures with gotip
This commit is contained in:
Xiang Li 2015-12-04 11:33:35 -08:00
commit e0e80b37f2
2 changed files with 8 additions and 3 deletions

View File

@ -1,10 +1,15 @@
language: go
sudo: false
go:
- 1.4
- 1.5
- tip
matrix:
allow_failures:
- go: tip
addons:
apt:
packages:

6
test
View File

@ -52,12 +52,12 @@ if [ $MACHINE_TYPE != "armv7l" ]; then
RACE="--race"
fi
go test -timeout 3m ${COVER} $@ ${TEST} ${RACE} -cpu 1,2,4
go test -timeout 3m ${COVER} $@ ${NO_RACE_TEST} -cpu 1,2,4
go test -timeout 3m ${COVER} ${RACE} -cpu 1,2,4 $@ ${TEST}
go test -timeout 3m ${COVER} -cpu 1,2,4 $@ ${NO_RACE_TEST}
if [ -n "$INTEGRATION" ]; then
echo "Running integration tests..."
go test -timeout 10m $@ ${REPO_PATH}/integration -v -cpu 1,2,4
go test -timeout 10m -v -cpu 1,2,4 $@ ${REPO_PATH}/integration
fi
echo "Checking gofmt..."