Enable the race detector for TravisCI.
This commit is contained in:
parent
ee945cdeec
commit
81b6031236
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue