use GolangCI-Lint instead of gometalinter

This commit is contained in:
Marten Seemann
2019-02-27 20:46:45 +09:00
parent 9b5a20e772
commit b52d45a1e5
3 changed files with 27 additions and 28 deletions

View File

@@ -3,10 +3,9 @@
set -ex
go get -t ./...
if [ ${TESTMODE} == "lint" ]; then
go get github.com/alecthomas/gometalinter
gometalinter --install
gometalinter --deadline=300s --tests ./...
if [ ${TESTMODE} == "lint" ]; then
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.15.0
./bin/golangci-lint run ./...
fi
if [ ${TESTMODE} == "unit" ]; then