From: Nathan Youngman Date: Thu, 17 Dec 2015 03:04:41 +0000 (-0700) Subject: Add race detection on Travis CI. X-Git-Tag: v1.7.2~207 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=8f04a258e3007fb68e0a494d79a422dd028a3d3d;p=fsnotify.git Add race detection on Travis CI. thanks to @ppknap for the suggestion --- diff --git a/.travis.yml b/.travis.yml index 1b5151f..7098876 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,14 @@ sudo: false language: go go: - - 1.5.1 + - 1.5.2 before_script: - go get -u github.com/golang/lint/golint +script: + - go test -v --race ./... + after_script: - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" - test -z "$(golint ./... | tee /dev/stderr)"