diff --git a/.travis.yml b/.travis.yml index 8727889c..0d4fb385 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,8 @@ install: - export PATH=$PATH:$PWD/linux-amd64/ - glide install - go install . ./cmd/... - - go get -v github.com/alecthomas/gometalinter - - gometalinter --install + - go get -u gopkg.in/alecthomas/gometalinter.v2 + - gometalinter.v2 --install script: - export PATH=$PATH:$HOME/gopath/bin - ./goclean.sh diff --git a/goclean.sh b/goclean.sh index bcbd5240..548baf8b 100755 --- a/goclean.sh +++ b/goclean.sh @@ -21,14 +21,14 @@ fi # Make sure gometalinter is installed and $GOPATH/bin is in your path. # $ go get -v github.com/alecthomas/gometalinter" # $ gometalinter --install" -if [ ! -x "$(type -p gometalinter)" ]; then +if [ ! -x "$(type -p gometalinter.v2)" ]; then exit 1 fi linter_targets=$(glide novendor) # Automatic checks -test -z "$(gometalinter -j 4 --disable-all \ +test -z "$(gometalinter.v2 -j 4 --disable-all \ --enable=gofmt \ --enable=golint \ --enable=vet \