-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
50 lines (40 loc) · 957 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: test-all
test-all: lint test
.PHONY: test
test:
go test -race -count=1 ./...
.PHONY: lint
lint:
golangci-lint run -v ./...
.PHONY: verify-codegen
verify-codegen:
./scripts/verify-codegen.sh
./scripts/verify-deepcopy-gen.sh
.PHONY: update-codegen
update-codegen:
./scripts/update-deepcopy-gen.sh
go generate ./...
.PHONY: coverage
coverage:
go test -race -v -count=1 -coverprofile=coverage.out.tmp ./...
# ignoring generated code for coverage
grep -E -v 'generated.deepcopy.go' coverage.out.tmp > coverage.out
rm -f coverage.out.tmp
generate-cli-docs:
mkdir -p $(CLI_DOCS_PATH)
go run docs/*.go -output-path $(CLI_DOCS_PATH)
.PHONY: setup-kong
setup-kong:
bash .ci/setup_kong.sh
.PHONY: setup-kong-ee
setup-kong-ee:
bash .ci/setup_kong_ee.sh
.PHONY: test-integration
test-integration:
go test -v -count=1 -tags=integration \
-race \
${GOTESTFLAGS} \
./tests/integration/...
.PHONY: clean
clean:
bash .ci/clean_kong.sh