Skip to content

Commit

Permalink
Enable the race detector for TravisCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Jan 15, 2015
1 parent ee945cd commit 81b6031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion goclean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81b6031

Please sign in to comment.