Do a build before the 'go test'; perversely this runs faster

This commit is contained in:
Bryan Boreham committed 2016-01-14 15:29:58 +00:00
1 parent 7c1e80ca89
commit bd7e5d6921
1 file changed
+1
+1
View File
@@ -90,6 +90,7 @@ else
$(WEAVER_EXE) $(WEAVEPROXY_EXE):
ifeq ($(COVERAGE),true)
go build -v $(BUILD_FLAGS) -o $@ ./$(@D)
$(eval COVERAGE_MODULES := $(shell (go list ./$(@D); go list -f '{{join .Deps "\n"}}' ./$(@D) | grep "^$(PACKAGE_BASE)/") | grep -v "^$(PACKAGE_BASE)/vendor/" | paste -s -d,))
go test -c -o ./$@ $(BUILD_FLAGS) -v -covermode=atomic -coverpkg $(COVERAGE_MODULES) ./$(@D)/
else