forked from vektra/mockery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SHELL=bash
.PHONY: all
all: fmt mocks test install docker integration
.PHONY: fmt
fmt:
go fmt ./...
.PHONY: test
test: mocks
go test ./...
mocks: $(shell find . -type f -name '*.go' -not -name '*_test.go')
go run . --dir pkg/fixtures --output mocks/pkg/fixtures
go run . --all=false --print --dir pkg/fixtures --name RequesterVariadic --structname RequesterVariadicOneArgument --unroll-variadic=False > mocks/pkg/fixtures/RequesterVariadicOneArgument.go
go run . --all=false --print --dir pkg/fixtures --name Expecter --with-expecter > mocks/pkg/fixtures/Expecter.go
@touch mocks
.PHONY: install
install:
go install .
.PHONY: docker
docker:
docker build -t vektra/mockery .
.PHONY: integration
integration: docker install
./hack/run-e2e.sh
.PHONY: clean
clean:
rm -rf mocks