Skip to content

Commit

Permalink
Add mock makefile targets.
Browse files Browse the repository at this point in the history
`make mocks` will generate mocks.
  • Loading branch information
rene00 committed Jan 27, 2021
1 parent 5115f68 commit 0cdd7f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

.PHONY: mocks
mocks: $(GOBIN)/mockgen
@go generate ./...

0 comments on commit 0cdd7f0

Please sign in to comment.