Integration test often time out because the machine is loaded. Instead of increasing timeout, this change hopes to address the issue by limiting the number of tests running simultaneously. Add a new flag in integration.go to specify the maximum number of concurrent tests. Set the default in travis and shippable configurations to be 4.
40 lines
1.5 KiB
YAML
40 lines
1.5 KiB
YAML
sudo: false
|
|
|
|
language: go
|
|
|
|
build_image: shipimg/ubuntu1204_go:latest
|
|
|
|
matrix:
|
|
include:
|
|
- go: 1.4
|
|
env: KUBE_TEST_API_VERSIONS="v1beta1"
|
|
- go: 1.3
|
|
env: KUBE_TEST_API_VERSIONS="v1beta3"
|
|
|
|
before_install:
|
|
- source $HOME/.gvm/scripts/gvm;
|
|
- if [[ $SHIPPABLE_GO_VERSION == "tip" ]]; then gvm install tip; gvm use tip; fi
|
|
- if [[ $SHIPPABLE_GO_VERSION == *release* ]]; then gvm install release; gvm use release; fi
|
|
- if [[ $SHIPPABLE_GO_VERSION =~ [0-9].[0-9] ]]; then gvm install go$SHIPPABLE_GO_VERSION; gvm use go$SHIPPABLE_GO_VERSION; fi
|
|
- export GOPATH=$SHIPPABLE_GOPATH
|
|
|
|
install:
|
|
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
|
- go get github.com/mattn/goveralls
|
|
- ./hack/travis/install-etcd.sh
|
|
- ./hack/verify-gofmt.sh
|
|
- ./hack/verify-boilerplate.sh
|
|
- ./hack/verify-description.sh
|
|
- ./hack/travis/install-std-race.sh
|
|
- ./hack/build-go.sh
|
|
- GOPATH=$PWD/Godeps/_workspace:$GOPATH go install ./...
|
|
- PATH=$HOME/gopath/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
|
|
|
|
script:
|
|
- KUBE_RACE="-race" KUBE_COVER="y" KUBE_GOVERALLS_BIN="$HOME/gopath/bin/goveralls" KUBE_TIMEOUT='-timeout 300s' KUBE_COVERPROCS=8 KUBE_TEST_API_VERSIONS=$KUBE_TEST_API_VERSIONS ./hack/test-go.sh -- -p=2
|
|
- PATH=$HOME/gopath/bin:./third_party/etcd:$PATH ./hack/test-cmd.sh
|
|
- PATH=$HOME/gopath/bin:./third_party/etcd:$PATH KUBE_TEST_API_VERSIONS=$KUBE_TEST_API_VERSIONS KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4 ./hack/test-integration.sh
|
|
|
|
notifications:
|
|
irc: "chat.freenode.net#google-containers"
|