Use golint

This commit is contained in:
Sebastian Zagrodzki
2017-04-09 18:05:46 +02:00
parent c437b39ef7
commit e6f6a4f76e

View File

@@ -13,11 +13,13 @@ addons:
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/golang/lint/golint
- go get github.com/mattn/goveralls
script:
# a workaround for go test not supporting coverage for multiple packages in a single invocation.
# If goveralls upload fails, ignore the result.
- $HOME/gopath/bin/golint ./...
- |-
echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -v -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp
- |-