forked from mirror/logrus
Fix travis build for go 1.11 with modules
This commit is contained in:
parent
66895ce165
commit
eed7c22374
14
.travis.yml
14
.travis.yml
|
@ -6,11 +6,23 @@ matrix:
|
||||||
- go: 1.10.x
|
- go: 1.10.x
|
||||||
install:
|
install:
|
||||||
- go get github.com/stretchr/testify/assert
|
- go get github.com/stretchr/testify/assert
|
||||||
- go get gopkg.in/gemnasium/logrus-airbrake-hook.v2
|
- go get golang.org/x/crypto/ssh/terminal
|
||||||
- go get golang.org/x/sys/unix
|
- go get golang.org/x/sys/unix
|
||||||
- go get golang.org/x/sys/windows
|
- go get golang.org/x/sys/windows
|
||||||
|
script:
|
||||||
|
- go test -race -v ./...
|
||||||
- go: 1.11.x
|
- go: 1.11.x
|
||||||
|
env: GO111MODULE=on
|
||||||
install:
|
install:
|
||||||
- go mod download
|
- go mod download
|
||||||
script:
|
script:
|
||||||
- go test -race -v ./...
|
- go test -race -v ./...
|
||||||
|
- go: 1.11.x
|
||||||
|
env: GO111MODULE=off
|
||||||
|
install:
|
||||||
|
- go get github.com/stretchr/testify/assert
|
||||||
|
- go get golang.org/x/crypto/ssh/terminal
|
||||||
|
- go get golang.org/x/sys/unix
|
||||||
|
- go get golang.org/x/sys/windows
|
||||||
|
script:
|
||||||
|
- go test -race -v ./...
|
||||||
|
|
Loading…
Reference in New Issue