Skip to content

Commit

Permalink
CI: Add race detection to test step and use GO111MODULE=on (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nguyen authored and jonboydell committed Jul 17, 2019
1 parent ed9c874 commit b659780
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
language: go
go:
- "1.12.7"
env:
global:
- GO111MODULE=on
before_install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script:
- go test -v ./... -covermode=count -coverprofile=coverage.out
- go test -v -race ./... -covermode=atomic -coverprofile=coverage.out
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN

0 comments on commit b659780

Please sign in to comment.