From 0cdd7f0b60b13242d784ee242ae1b300c0f327b6 Mon Sep 17 00:00:00 2001 From: Rene Cunningham Date: Wed, 27 Jan 2021 14:22:52 +1100 Subject: [PATCH] Add mock makefile targets. `make mocks` will generate mocks. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index c6b6c7c41..6209c685f 100644 --- a/Makefile +++ b/Makefile @@ -31,3 +31,10 @@ build-all-platforms: # Run all the tests and code checks ci: build-all-platforms test lint .PHONY: ci + +$(GOBIN)/mockgen: + @cd && GO111MODULE=on go get github.com/golang/mock/mockgen@v1.4.4 + +.PHONY: mocks +mocks: $(GOBIN)/mockgen + @go generate ./...