forked from cloudfoundry-incubator/quarks-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
90 lines (60 loc) · 1.64 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env make
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKEFILE_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
all: tools build test
up:
bin/up
vet:
bin/vet
lint:
bin/lint
tools:
bin/tools
check-scripts:
bin/check-scripts
staticcheck:
bin/staticcheck
############ BUILD TARGETS ############
.PHONY: build build-container-run
build:
bin/build
build-container-run:
bin/build-container-run $(MAKEFILE_DIR)/binaries
build-image:
bin/build-image
build-helm:
bin/build-helm
############ TEST TARGETS ############
test: vet lint staticcheck test-unit test-integration test-integration-storage test-helm-e2e test-helm-e2e-storage test-cli-e2e test-integration-subcmds
test-unit:
bin/test-unit
test-integration:
bin/test-integration
test-cli-e2e:
bin/test-cli-e2e
test-helm-e2e:
bin/test-helm-e2e
test-helm-e2e-storage:
bin/test-helm-e2e-storage
test-integration-storage:
bin/test-integration storage
test-integration-subcmds:
bin/test-integration util
############ GENERATE TARGETS ############
generate: gen-kube gen-fakes
gen-kube:
bin/gen-kube
gen-fakes:
bin/gen-fakes
gen-command-docs:
rm -f docs/commands/*
go run cmd/gen-command-docs.go
gen-crd-docs:
kubectl get crd boshdeployments.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_boshdeployment_crd.yaml
kubectl get crd quarkssecrets.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_quarkssecret_crd.yaml
kubectl get crd quarksstatefulsets.quarks.cloudfoundry.org -o yaml > docs/crds/quarks_v1alpha1_quarksstatefulset_crd.yaml
verify-gen-kube:
bin/verify-gen-kube
############ COVERAGE TARGETS ############
coverage:
bin/coverage