Skip to content

Commit 2de4187

Browse files
committedApr 4, 2018
[FAB-9232] Add mock and fake generation tools
Change-Id: I739851fd9fdcb749ae05fb6f4b2560cd99bd6304 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent f660448 commit 2de4187

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
 

‎gotools.mk

+9-8
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
#
44
# SPDX-License-Identifier: Apache-2.0
55

6-
GOTOOLS = dep golint goimports protoc-gen-go ginkgo gocov gocov-xml misspell
6+
GOTOOLS = counterfeiter dep golint goimports protoc-gen-go ginkgo gocov gocov-xml misspell mockery
77
BUILD_DIR ?= .build
88
GOTOOLS_GOPATH ?= $(BUILD_DIR)/gotools
99
GOTOOLS_BINDIR ?= $(GOPATH)/bin
1010

1111
# go tool->path mapping
12-
go.fqp.golint := github.com/golang/lint/golint
13-
go.fqp.goimports := golang.org/x/tools/cmd/goimports
14-
go.fqp.gocov := github.com/axw/gocov/...
15-
go.fqp.misspell := github.com/client9/misspell/cmd/misspell
16-
go.fqp.gocov-xml := github.com/AlekSi/gocov-xml
12+
go.fqp.counterfeiter := github.com/maxbrunsfeld/counterfeiter
13+
go.fqp.gocov := github.com/axw/gocov/gocov
14+
go.fqp.gocov-xml := github.com/AlekSi/gocov-xml
15+
go.fqp.goimports := golang.org/x/tools/cmd/goimports
16+
go.fqp.golint := github.com/golang/lint/golint
17+
go.fqp.misspell := github.com/client9/misspell/cmd/misspell
18+
go.fqp.mockery := github.com/vektra/mockery/cmd/mockery
1719

1820
.PHONY: gotools-install
1921
gotools-install: $(patsubst %,$(GOTOOLS_BINDIR)/%, $(GOTOOLS))
@@ -39,10 +41,9 @@ gotool.ginkgo:
3941
# Lock to a versioned dep
4042
gotool.dep: DEP_VERSION ?= "v0.4.1"
4143
gotool.dep:
42-
@echo "Getting dep $(DEP_VERSION)"
4344
@GOPATH=$(abspath $(GOTOOLS_GOPATH)) go get -d -u github.com/golang/dep
4445
@git -C $(abspath $(GOTOOLS_GOPATH))/src/github.com/golang/dep checkout -q $(DEP_VERSION)
45-
@echo "Building github.com/golang/dep -> dep"
46+
@echo "Building github.com/golang/dep $(DEP_VERSION) -> dep"
4647
@GOPATH=$(abspath $(GOTOOLS_GOPATH)) GOBIN=$(abspath $(GOTOOLS_BINDIR)) go install -ldflags="-X main.version=$(DEP_VERSION) -X main.buildDate=$$(date '+%Y-%m-%d')" github.com/golang/dep/cmd/dep
4748
@git -C $(abspath $(GOTOOLS_GOPATH))/src/github.com/golang/dep checkout -q master
4849

0 commit comments

Comments
 (0)
Please sign in to comment.