From f2d6097ea5844b7aeecd4c480c34d6b600e1693f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Tue, 4 Sep 2018 19:00:33 -0400 Subject: [PATCH] switch to golanci-lint --- .goreleaser.yml | 3 ++- .travis.yml | 3 +-- check.sh | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 656fc20..ebf16c9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,7 @@ project_name: Asterisk Config builds: - - env: + - binary: asterisk-config + env: - CGO_ENABLED=0 goos: - linux diff --git a/.travis.yml b/.travis.yml index c2d93de..6fa3555 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,8 @@ go: - "1.10" install: - go get -u github.com/golang/dep/cmd/dep/... - - go get -u github.com/alecthomas/gometalinter/... + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10.2 - go get -u github.com/goreleaser/goreleaser - - gometalinter --install script: bash check.sh services: - docker diff --git a/check.sh b/check.sh index 646c70b..91cc546 100755 --- a/check.sh +++ b/check.sh @@ -1,7 +1,8 @@ #!/bin/bash set -e dep ensure -gometalinter --skip test --skip defaults --cyclo-over=15 --deadline=90s --vendor ./... +#gometalinter --skip test --skip defaults --cyclo-over=15 --deadline=90s --vendor ./... +golangci-lint run go test ./... go build ./... go build