aboutsummaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-02-19 02:20:04 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-04-10 22:17:01 +0100
commit54cefc8500136ca60f294bbb3360faeccaaf52b1 (patch)
tree41c1ff9476852e4ae109267370ea014c08721c94 /run_tests.sh
parentd919f85c19cb754b1507b45e1609292f495ffff9 (diff)
enable race detection
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index b506438..3b27193 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -6,8 +6,8 @@
set -xue
-go install -v ./cmd/cashier ./cmd/cashierd
-go list ./... |grep -v vendor/ |xargs go test
+go install -race -v ./cmd/cashier ./cmd/cashierd
+go list ./... |grep -v vendor/ |xargs go test -race
gofmt -d $(find * -type f -name '*.go' -not -path 'vendor/*')
go list ./... |grep -v vendor/ |xargs go vet
if ! type -f golint > /dev/null; then