Skip to content

Commit

Permalink
Reenable Coverage and Race detection for travis and integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Jan 9, 2015
1 parent b8333bd commit dcd1176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions hack/test-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions hack/test-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dcd1176

Please sign in to comment.