Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

Commit 46b6322

Browse files
author
Francisco Souza
committed
Makefile: simplify coverage target
1 parent 21a4ae2 commit 46b6322

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ lint: testdeps
1111
golangci-lint run -D errcheck -E golint -E staticcheck -E misspell -E gofmt
1212

1313
coverage: lint
14-
@rm -f coverage.txt; for p in $$(go list ./...); do \
15-
go test -coverprofile=profile.out -covermode=atomic $$p || export status=2; \
16-
if [ -f profile.out ]; then cat profile.out >> coverage.txt; rm profile.out; fi \
17-
done; \
18-
exit $${status:-0}
14+
go test -coverprofile=coverage.txt -covermode=atomic ./...
1915

2016
test: lint
2117
go test ./...

0 commit comments

Comments
 (0)