Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'bboreham-make-tests-stop'
Browse files Browse the repository at this point in the history
Closes #557
  • Loading branch information
rade committed Apr 14, 2015
2 parents 31775a8 + 8c6c14c commit f9ea3f5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,18 @@ $(DOCKER_DISTRIB):

tests:
echo "mode: count" > profile.cov
fail=0 ; \
for dir in $$(find . -type f -name '*_test.go' | xargs -n1 dirname | sort -u); do \
output=$$(mktemp cover.XXXXXXXXXX); \
go test -tags netgo -covermode=count -coverprofile=$$output $$dir; \
output=$$(mktemp cover.XXXXXXXXXX) ; \
if ! go test -tags netgo -covermode=count -coverprofile=$$output $$dir ; then \
fail=1 ; \
fi ; \
if [ -f $$output ]; then \
tail -n +2 <$$output >>profile.cov; \
rm $$output; \
fi \
done
done ; \
exit $$fail
go tool cover -html=profile.cov -o=coverage.html

$(PUBLISH): publish_%:
Expand Down

0 comments on commit f9ea3f5

Please sign in to comment.