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.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk
index 9a40f68b..b203cf4f 100644
--- a/Makefile.build.mk
+++ b/Makefile.build.mk
@@ -1,3 +1,5 @@
+GOLANGCI_LINT_VERSION := v1.25.1 # version used by $GOLANGCI_LINT_IMAGE
+
.PHONY: all setup generate-mocks build clean
all: gitlab-pages
@@ -5,6 +7,7 @@ all: gitlab-pages
setup: clean .GOPATH/.ok
go get github.com/wadey/gocovmerge@v0.0.0-20160331181800-b5bfa59ec0ad
go get github.com/golang/mock/mockgen@v1.3.1
+ go get github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
generate-mocks: .GOPATH/.ok
$Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks