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.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk
index c3294ffe..3202b0de 100644
--- a/Makefile.build.mk
+++ b/Makefile.build.mk
@@ -9,6 +9,11 @@ setup: .GOPATH/.ok
# Installing dev tools defined in go.tools
awk '/_/ {print $$2}' ./tools/main.go | xargs -tI % go install ${V:+-v -x} -modfile=tools/go.mod -mod=mod %
+cisetup: .GOPATH/.ok
+ mkdir -p bin/
+ # Installing dev tools defined in go.tools
+ awk '/_/ {print $$2}' ./tools/main.go | grep -v -e mockgen -e golangci | xargs -tI % go install ${V:+-v -x} -modfile=tools/go.mod -mod=mod %
+
generate-mocks: .GOPATH/.ok
$Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks
$Q bin/mockgen -source=internal/source/source.go -destination=internal/mocks/source.go -package=mocks