From c781a7ccd3147f750faeda631db15d06de455949 Mon Sep 17 00:00:00 2001 From: Tuomo Ala-Vannesluoma Date: Thu, 26 Sep 2019 13:35:28 +0000 Subject: Add support for previewing artifacts that are not public Remove some duplicate logic on Auth module Separate handling artifact to own handlers package Unit test handlers by mocking auth and artifact modules Add generate-mock step to Makefile Use additional handler func to simplify TryMakeRequest return type Always try with token if exists Do not log RequestURI, log path only Remove not used logRequest func --- Makefile.build.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.build.mk') diff --git a/Makefile.build.mk b/Makefile.build.mk index b58e2139..13745382 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -1,4 +1,4 @@ -.PHONY: all setup build clean +.PHONY: all setup generate-mocks build clean all: gitlab-pages @@ -7,6 +7,10 @@ setup: clean .GOPATH/.ok go get golang.org/x/lint/golint go get github.com/wadey/gocovmerge go get github.com/fzipp/gocyclo + go get github.com/golang/mock/mockgen + +generate-mocks: .GOPATH/.ok + $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks build: .GOPATH/.ok $Q go install $(if $V,-v) $(VERSION_FLAGS) -buildmode exe $(IMPORT_PATH) -- cgit v1.2.3