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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-26 09:17:12 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-11-03 02:44:09 +0300
commita7da1a13e72cce2572df792cc39c8f28375ab8c4 (patch)
tree6cf9b4dbd4406849f935ec519d6addf958c3dd3c /Makefile.build.mk
parenta3bf20e9a6fb8da3622ef4f610fcc98c16a55ab7 (diff)
build: add cisetup make task
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