Add go module support

Travis will only run the "go get" install lines if using go 1.10.x
This commit is contained in:
Dave Goddard
2018-09-06 09:49:06 -03:00
parent 3791101e14
commit f75951b604
3 changed files with 72 additions and 8 deletions
+9 -8
View File
@@ -1,13 +1,14 @@
language: go
go:
- 1.10.x
- 1.11.x
env:
- GOMAXPROCS=4 GORACE=halt_on_error=1
install:
- go get github.com/stretchr/testify/assert
- go get gopkg.in/gemnasium/logrus-airbrake-hook.v2
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
matrix:
include:
- go: 1.10.x
install:
- go get github.com/stretchr/testify/assert
- go get gopkg.in/gemnasium/logrus-airbrake-hook.v2
- go get golang.org/x/sys/unix
- go get golang.org/x/sys/windows
- go: 1.11.x
script:
- go test -race -v ./...