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