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 language: go
cache:
directories:
- $GOCACHE
- $GOPATH
- $GOPATH/pkg/mod
- $GOPATH/github.com/golang
- $GOPATH/gopkg.in/alecthomas
go: go:
- "1.9.5" - "1.11.x"
- "1.10.1"
sudo: false sudo: false
install: 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/ - export PATH=$PATH:$PWD/linux-amd64/
- glide install - GO111MODULE=on go install . ./cmd/...
- go install . ./cmd/... - GO111MODULE=off go get -u gopkg.in/alecthomas/gometalinter.v2
- go get -u gopkg.in/alecthomas/gometalinter.v2 - GO111MODULE=off gometalinter.v2 --install
- gometalinter.v2 --install
script: script:
- export PATH=$PATH:$HOME/gopath/bin - export PATH=$PATH:$HOME/gopath/bin
- ./goclean.sh - ./goclean.sh