Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r--Makefile.build.mk6
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)