1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-11 13:38:41 +02:00

using covermode count

This commit is contained in:
Carlos Alexandro Becker 2017-03-25 21:00:03 -03:00
parent 1ee7fafe96
commit 5bb80dd0a8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -7,11 +7,11 @@ setup: ## Install all the build and lint dependencies
go get -u github.com/golang/dep/...
go get -u github.com/pierrre/gotestcover
go get -u golang.org/x/tools/cmd/cover
dep ensure
dep ensure
gometalinter --install
test: ## Run all the tests
gotestcover $(TEST_OPTIONS) -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
gotestcover $(TEST_OPTIONS) -covermode=count -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
fmt: ## gofmt and goimports all go files
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done