forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.nocontainer
47 lines (36 loc) · 1.18 KB
/
Makefile.nocontainer
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
all: build
bootstrap:
go get -u github.com/onsi/ginkgo/ginkgo
go get -u mvdan.cc/sh/cmd/shfmt
go get -u -d k8s.io/code-generator/cmd/deepcopy-gen
go get -u -d k8s.io/code-generator/cmd/defaulter-gen
go get -u -d k8s.io/code-generator/cmd/openapi-gen
cd ${GOPATH}/src/k8s.io/code-generator/cmd/deepcopy-gen && git checkout release-1.9 && go install
cd ${GOPATH}/src/k8s.io/code-generator/cmd/defaulter-gen && git checkout release-1.9 && go install
cd ${GOPATH}/src/k8s.io/code-generator/cmd/openapi-gen && git checkout release-1.9 && go install
generate:
./hack/generate.sh
apidocs:
./hack/gen-swagger-doc/gen-swagger-docs.sh v1 html
build: check
go install -v ./cmd/... ./pkg/...
./hack/copy-cmd.sh
test: build
go test -v -cover ./pkg/...
check:
./hack/check.sh
OUT_DIR=./_out
TESTS_OUT_DIR=${OUT_DIR}/tests
functest: build
go build -v ./tests/...
ginkgo build ./tests
mkdir -p ${TESTS_OUT_DIR}/
mv ./tests/tests.test ${TESTS_OUT_DIR}/
./hack/functests.sh
cluster-sync: build
./hack/build-copy-artifacts.sh
./hack/build-manifests.sh
./hack/build-docker.sh build
./cluster/clean.sh
./cluster/deploy.sh
.PHONY: bootstarp build test check functest cluster-sync generate apidocs