build: switch to stable version of gometalinter

This commit is contained in:
Olaoluwa Osuntokun 2018-05-15 20:01:58 -07:00
parent 253b37c17f
commit 04f0b5338a
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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 \