diff options
author | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2019-09-26 16:35:28 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-09-26 16:35:28 +0300 |
commit | c781a7ccd3147f750faeda631db15d06de455949 (patch) | |
tree | c2d190d278bb270eed5b2ecae0ba9e77f84e1577 /Makefile.build.mk | |
parent | 218376d484a8ec55882b037475ec3201d1c897cf (diff) |
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
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 6 |
1 files changed, 5 insertions, 1 deletions
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) |