travis: remove glide, only build 1.11.x, use modules

This commit is contained in:
Conner Fromknecht 2018-11-29 17:45:59 -08:00
parent 2a9e4372c8
commit 2f3be2e337
No known key found for this signature in database
GPG key ID: E7D737B67FA592C7

View file

@ -1,17 +1,19 @@
language: go
cache:
directories:
- $GOCACHE
- $GOPATH
- $GOPATH/pkg/mod
- $GOPATH/github.com/golang
- $GOPATH/gopkg.in/alecthomas
go:
- "1.9.5"
- "1.10.1"
- "1.11.x"
sudo: false
install:
- GLIDE_TAG=v0.12.3
- GLIDE_DOWNLOAD="https://github.com/Masterminds/glide/releases/download/$GLIDE_TAG/glide-$GLIDE_TAG-linux-amd64.tar.gz"
- curl -L $GLIDE_DOWNLOAD | tar -xvz
- export PATH=$PATH:$PWD/linux-amd64/
- glide install
- go install . ./cmd/...
- go get -u gopkg.in/alecthomas/gometalinter.v2
- gometalinter.v2 --install
- GO111MODULE=on go install . ./cmd/...
- GO111MODULE=off go get -u gopkg.in/alecthomas/gometalinter.v2
- GO111MODULE=off gometalinter.v2 --install
script:
- export PATH=$PATH:$HOME/gopath/bin
- ./goclean.sh