Skip to content

Commit 438eb55

Browse files
committed
Check for race conditions and fail test build if they exist
1 parent 98261e2 commit 438eb55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ go:
66
- tip
77

88
before_install: go get golang.org/x/tools/cmd/cover
9-
script: go test -race -cover ./...
9+
script:
10+
- export GORACE="halt_on_error=1"
11+
- go test -race -v -cover ./...
1012

1113
env:
1214
- GOMAXPROCS=8

0 commit comments

Comments
 (0)