mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-26 21:21:54 +08:00
Travis: Use Go 1.12 for Go module support
gometalinter breaks with Go modules, so disable them.
This commit is contained in:
+4
-4
@@ -1,15 +1,15 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
go: 1.10.x
|
go: 1.12.x
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- "PATH=/home/travis/gopath/bin:$PATH"
|
- "PATH=/home/travis/gopath/bin:$PATH GO111MODULE=on"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
# Install gometalinter and certain linters
|
# Install gometalinter and certain linters
|
||||||
- go get github.com/alecthomas/gometalinter
|
- env GO111MODULE=off go get github.com/alecthomas/gometalinter
|
||||||
- gometalinter --install
|
- env GO111MODULE=off gometalinter --install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./...
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user