From 22f662e0fbde5a37c1d864da9d9db69ba944d400 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Thu, 30 Aug 2018 13:10:02 +0200 Subject: [PATCH] Ignore content of contrib directory by `go test` --- build/docker/bin/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/docker/bin/Makefile b/build/docker/bin/Makefile index 5a55cd7e..2043a202 100644 --- a/build/docker/bin/Makefile +++ b/build/docker/bin/Makefile @@ -23,10 +23,10 @@ tools: chown $(PACKAGER) /out/{ldb,sst_dump} test: prepare-sources - cd $(GOPATH)/src/blockbook && go test -tags unittest ./... $(ARGS) + cd $(GOPATH)/src/blockbook && go test -tags unittest `go list ./... | grep -v '^blockbook/contrib'` $(ARGS) test-all: prepare-sources - cd $(GOPATH)/src/blockbook && go test -tags 'unittest integration' ./... $(ARGS) + cd $(GOPATH)/src/blockbook && go test -tags 'unittest integration' `go list ./... | grep -v '^blockbook/contrib'` $(ARGS) prepare-sources: @ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)