@@ -53,8 +53,8 @@ ifneq ("$(wildcard /run/finch.sock)","")
53
53
sudo unlink /run/finch.sock
54
54
endif
55
55
56
- .PHONY : code- gen
57
- code- gen : linux
56
+ .PHONY : gen-code
57
+ gen-code : linux
58
58
rm -rf ./pkg/mocks
59
59
GOBIN=$(BIN ) go install github.com/golang/mock/mockgen
60
60
GOBIN=$(BIN ) go install golang.org/x/tools/cmd/stringer
@@ -72,36 +72,36 @@ GOLINT=$(BIN)/golangci-lint
72
72
$(GOLINT ) : linux
73
73
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(BIN ) v1.60.3
74
74
75
- .PHONY : golint
76
- golint : linux $(GOLINT )
75
+ .PHONY : lint
76
+ lint : linux $(GOLINT )
77
77
$(GOLINT ) run ./...
78
78
79
- .PHONY : run -unit-tests
80
- run -unit-tests : linux
79
+ .PHONY : test -unit
80
+ test -unit : linux
81
81
$(GINKGO ) $(GFLAGS ) ./...
82
82
83
- .PHONY : licenses
84
- licenses :
85
- PATH=$(BIN ) :$(PATH ) go-licenses report --template=" scripts/third-party-license.tpl" --ignore github.com/runfinch ./... > THIRD_PARTY_LICENSES
86
-
87
83
# Runs tests in headless dlv mode, must specify package directory with PKG_DIR
88
84
PKG_DIR ?= .
89
- .PHONY : debug -unit-tests
90
- debug -unit-tests : linux $(DLV )
85
+ .PHONY : test -unit-debug
86
+ test -unit-debug : linux $(DLV )
91
87
sudo $(DLV ) --listen=:2345 --headless=true --api-version=2 test $(PKG_DIR )
92
88
89
+ .PHONY : test-e2e
90
+ test-e2e : linux
91
+ DOCKER_HOST=" unix:///run/finch.sock" \
92
+ DOCKER_API_VERSION=" v1.41" \
93
+ TEST_E2E=1 \
94
+ $(GINKGO ) $(GFLAGS ) ./e2e/...
95
+
96
+ .PHONY : licenses
97
+ licenses :
98
+ PATH=$(BIN ) :$(PATH ) go-licenses report --template=" scripts/third-party-license.tpl" --ignore github.com/runfinch ./... > THIRD_PARTY_LICENSES
99
+
93
100
.PHONY : coverage
94
101
coverage : linux
95
102
$(GINKGO ) -r -v -race --trace --cover --coverprofile=" coverage-report.out" ./...
96
103
go tool cover -html=" coverage-report.out" -o=" unit-test-coverage-report.html"
97
104
98
- .PHONY : run-e2e-tests
99
- run-e2e-tests : linux
100
- DOCKER_HOST=" unix:///run/finch.sock" \
101
- DOCKER_API_VERSION=" v1.41" \
102
- RUN_E2E_TESTS=1 \
103
- $(GINKGO ) $(GFLAGS ) ./e2e/...
104
-
105
105
.PHONY : release
106
106
release : linux
107
107
@echo " $@ "
0 commit comments