build: switch to stable version of gometalinter
This commit is contained in:
parent
253b37c17f
commit
04f0b5338a
2 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@ install:
|
||||||
- export PATH=$PATH:$PWD/linux-amd64/
|
- export PATH=$PATH:$PWD/linux-amd64/
|
||||||
- glide install
|
- glide install
|
||||||
- go install . ./cmd/...
|
- go install . ./cmd/...
|
||||||
- go get -v github.com/alecthomas/gometalinter
|
- go get -u gopkg.in/alecthomas/gometalinter.v2
|
||||||
- gometalinter --install
|
- gometalinter.v2 --install
|
||||||
script:
|
script:
|
||||||
- export PATH=$PATH:$HOME/gopath/bin
|
- export PATH=$PATH:$HOME/gopath/bin
|
||||||
- ./goclean.sh
|
- ./goclean.sh
|
||||||
|
|
|
@ -21,14 +21,14 @@ fi
|
||||||
# Make sure gometalinter is installed and $GOPATH/bin is in your path.
|
# Make sure gometalinter is installed and $GOPATH/bin is in your path.
|
||||||
# $ go get -v github.com/alecthomas/gometalinter"
|
# $ go get -v github.com/alecthomas/gometalinter"
|
||||||
# $ gometalinter --install"
|
# $ gometalinter --install"
|
||||||
if [ ! -x "$(type -p gometalinter)" ]; then
|
if [ ! -x "$(type -p gometalinter.v2)" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
linter_targets=$(glide novendor)
|
linter_targets=$(glide novendor)
|
||||||
|
|
||||||
# Automatic checks
|
# Automatic checks
|
||||||
test -z "$(gometalinter -j 4 --disable-all \
|
test -z "$(gometalinter.v2 -j 4 --disable-all \
|
||||||
--enable=gofmt \
|
--enable=gofmt \
|
||||||
--enable=golint \
|
--enable=golint \
|
||||||
--enable=vet \
|
--enable=vet \
|
||||||
|
|
Loading…
Reference in a new issue