enable -race flag in tests
This commit is contained in:
parent
91715229f1
commit
df4eeb840b
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue