From 7c1e80ca894e7010aa67b9adcf59d0e67e6b0352 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 14 Jan 2016 14:16:28 +0000 Subject: [PATCH] Don't do coverage on vendored directories --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 47b8410a..2bba3f4a 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ else $(WEAVER_EXE) $(WEAVEPROXY_EXE): ifeq ($(COVERAGE),true) - $(eval COVERAGE_MODULES := $(shell (go list ./$(@D); go list -f '{{join .Deps "\n"}}' ./$(@D) | grep "^$(PACKAGE_BASE)/") | paste -s -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 go build $(BUILD_FLAGS) -o $@ ./$(@D)