enable -race flag in tests

This commit is contained in:
Cenk Alti 2018-12-30 00:50:54 +03:00
parent 91715229f1
commit df4eeb840b
No known key found for this signature in database
GPG key ID: 2DB2EA6FD1BF1761

View file

@ -11,7 +11,7 @@ matrix:
- go get -u golang.org/x/tools/cmd/...
script:
- dep ensure
- go test -v $(go list ./...)
- go test -v -race $(go list ./...)
- go vet $(go list ./...)
- diff <(goimports -local github.com/chihaya/chihaya -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
@ -27,7 +27,7 @@ matrix:
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
script:
- go test -v $(go list ./...)
- go test -v -race $(go list ./...)
- go vet $(go list ./...)
- diff <(goimports -local github.com/chihaya/chihaya -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
@ -44,7 +44,7 @@ matrix:
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
script:
- go test -v $(go list ./...)
- go test -v -race $(go list ./...)
- go vet $(go list ./...)
- diff <(goimports -local github.com/chihaya/chihaya -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)