Skip to content

Commit

Permalink
switch to golanci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Sep 4, 2018
1 parent 71e54d6 commit f2d6097
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project_name: Asterisk Config
builds:
- env:
- binary: asterisk-config
env:
- CGO_ENABLED=0
goos:
- linux
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion check.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f2d6097

Please sign in to comment.