From 81b60312363f28cfad801d412eaf1be49eb2c961 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 15 Jan 2015 16:57:55 -0500 Subject: [PATCH] Enable the race detector for TravisCI. --- goclean.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goclean.sh b/goclean.sh index f845a01f..91833320 100755 --- a/goclean.sh +++ b/goclean.sh @@ -13,12 +13,13 @@ test -z "$(gofmt -l -w . | tee /dev/stderr)" test -z "$(goimports -l -w . | tee /dev/stderr)" test -z "$(golint . | tee /dev/stderr)" go vet ./... +env GORACE="halt_on_error=1" go test -v -race ./... # Run test coverage on each subdirectories and merge the coverage profile. echo "mode: count" > profile.cov -# Standard go tooling behavior is to ignore dirs with leading underscors +# Standard go tooling behavior is to ignore dirs with leading underscores. for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); do if ls $dir/*.go &> /dev/null; then