-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
22 lines (19 loc) · 912 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all
all:
.PHONY: test
test:
go test -v -race ./internal/...
.PHONY: generate
generate:
$(MAKE) -C tools
./tools/bin/wire ./internal/di
rm -fr internal/mocks
./tools/bin/mockgen -destination internal/mocks/mock_browser/mock.go github.com/int128/kauthproxy/internal/browser Interface
./tools/bin/mockgen -destination internal/mocks/mock_env/mock.go github.com/int128/kauthproxy/internal/env Interface
./tools/bin/mockgen -destination internal/mocks/mock_portforwarder/mock.go github.com/int128/kauthproxy/internal/portforwarder Interface
./tools/bin/mockgen -destination internal/mocks/mock_resolver/mock.go github.com/int128/kauthproxy/internal/resolver FactoryInterface,Interface
./tools/bin/mockgen -destination internal/mocks/mock_reverseproxy/mock.go github.com/int128/kauthproxy/internal/reverseproxy Interface,Instance
.PHONY: lint
lint:
$(MAKE) -C tools
./tools/bin/golangci-lint run