Use golint
This commit is contained in:
@@ -13,11 +13,13 @@ addons:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- go get golang.org/x/tools/cmd/cover
|
- go get golang.org/x/tools/cmd/cover
|
||||||
|
- go get github.com/golang/lint/golint
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# a workaround for go test not supporting coverage for multiple packages in a single invocation.
|
# a workaround for go test not supporting coverage for multiple packages in a single invocation.
|
||||||
# If goveralls upload fails, ignore the result.
|
# 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
|
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
|
||||||
- |-
|
- |-
|
||||||
|
Reference in New Issue
Block a user