-
Notifications
You must be signed in to change notification settings - Fork 128
/
Makefile
46 lines (36 loc) · 860 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
.DEFAULT_GOAL := test-all
CLI_DOCS_PATH=docs/cli-docs/
.PHONY: test-all
test-all: lint test
.PHONY: test
test:
go test -race -count=1 ./...
.PHONY: lint
lint:
golangci-lint run -v ./...
.PHONY: build
build:
CGO_ENABLED=0 go build -o deck main.go
.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 \
./tests/integration/...
.PHONY: clean
clean:
bash .ci/clean_kong.sh