Debian Codegraph @

Makefile

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