From 5a4b1a5f816a558d58b3c412f7029f5d26521129 Mon Sep 17 00:00:00 2001 From: Matthias Berkenkamp Date: Tue, 1 Aug 2017 09:54:27 +0200 Subject: [PATCH] try to fix coverage location in travis --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 26ccb8a..8772bdc 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -COVERDIR = .coverage +COVERDIR = /tmp/coverage/ TOOLDIR = tools GO_SRC := $(shell find . -name '*.go' ! -path '*/vendor/*' ! -path 'tools/*' ) @@ -43,8 +43,8 @@ fmt: tools gofmt -s -w $(GO_SRC) test: tools - @mkdir -p $(COVERDIR) - @rm -f $(COVERDIR)/* + mkdir -p $(COVERDIR) + rm -f $(COVERDIR)/* for pkg in $(GO_PKGS) ; do \ go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \ done