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>2022-01-26 20:15:15 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-02-06 01:08:31 +0300
commit69a5933a794cf0dd22367005cb3930e446c3d8c9 (patch)
treeef44796b465959472339cc6f2ad243abce178e6d /Makefile.build.mk
parentd4a251ae1bb492fee8af0d3d3619bdd3f5bfc1c0 (diff)
ci: add mocks-check task to validate mocks
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r--Makefile.build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk
index 6ee9218c..6f6c6bc1 100644
--- a/Makefile.build.mk
+++ b/Makefile.build.mk
@@ -21,7 +21,7 @@ cisetup: .GOPATH/.ok
# 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
+generate-mocks: .GOPATH/.ok bin/mockgen
$Q bin/mockgen -source=internal/interface.go -destination=internal/handlers/mock/handler_mock.go -package=mock
$Q bin/mockgen -source=internal/source/source.go -destination=internal/source/mock/source_mock.go -package=mock
$Q bin/mockgen -source=internal/source/gitlab/mock/client_stub.go -destination=internal/source/gitlab/mock/client_mock.go -package=mock