Reenable Coverage and Race detection for travis and integration test

pull/6/head
Clayton Coleman 2015-01-09 13:02:29 -05:00
parent b8333bdeef
commit dcd11761e7
3 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ install:
- ./hack/build-go.sh
script:
- KUBE_TIMEOUT='-timeout 60s' ./hack/test-go.sh
- KUBE_RACE="-race" KUBE_COVER="-cover -covermode=atomic" KUBE_TIMEOUT='-timeout 60s' ./hack/test-go.sh
- PATH=$HOME/gopath/bin:./third_party/etcd:$PATH ./hack/test-cmd.sh
- PATH=$HOME/gopath/bin:./third_party/etcd:$PATH ./hack/test-integration.sh

View File

@ -44,9 +44,9 @@ kube::test::find_pkgs() {
}
# -covermode=atomic becomes default with -race in Go >=1.3
KUBE_COVER="" #${KUBE_COVER:--cover -covermode=atomic}
KUBE_TIMEOUT=${KUBE_TIMEOUT:--timeout 120s}
KUBE_RACE="" #${KUBE_RACE:--race}
KUBE_COVER=${KUBE_COVER:-} # use KUBE_COVER="-cover -covermode=atomic" for full coverage
KUBE_RACE=${KUBE_RACE:-} # use KUBE_RACE="-race" to enable race testing
kube::test::usage() {
kube::log::usage_from_stdin <<EOF

View File

@ -39,6 +39,7 @@ kube::etcd::start
kube::log::status "Running integration test cases"
KUBE_GOFLAGS="-tags 'integration no-docker' " \
KUBE_RACE="-race" \
"${KUBE_ROOT}/hack/test-go.sh" test/integration
kube::log::status "Running integration test scenario"