From f8ac62ffae68ac92dca5387033e163812f288925 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Fri, 16 Oct 2020 15:45:29 +0300 Subject: [PATCH] Separate test dependency install Make builds fast again! Signed-off-by: Stanislav Bogatyrev --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 987544d0..9ea9b274 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,8 @@ dep: CGO_ENABLED=0 \ GO111MODULE=on \ go mod download && echo OK + +test_dep: @printf "⇒ Install test requirements: " CGO_ENABLED=0 \ GO111MODULE=on \ @@ -96,7 +98,7 @@ imports: @GO111MODULE=on goimports -w cmd/ pkg/ misc/ # Run Unit Test with go test -test: +test: test_dep @echo "⇒ Runnning go test" @GO111MODULE=on go test ./...