forked from openshift/windows-machine-config-bootstrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 931 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
all: build build-wmcb-unit-test build-wmcb-e2e-test verify-all
PACKAGE=github.com/openshift/windows-machine-config-bootstrapper
MAIN_PACKAGE=$(PACKAGE)/cmd/bootstrapper
GO_BUILD_ARGS=CGO_ENABLED=0 GO111MODULE=on
.PHONY: build
build: bindata
$(GO_BUILD_ARGS) GOOS=windows go build -o wmcb.exe $(MAIN_PACKAGE)
.PHONY: build-wmcb-unit-test
build-wmcb-unit-test: bindata
$(GO_BUILD_ARGS) GOOS=windows GOFLAGS=-v go test -c ./pkg/... -o wmcb_unit_test.exe
.PHONY: build-wmcb-e2e-test
build-wmcb-e2e-test: bindata
$(GO_BUILD_ARGS) GOOS=windows GOFLAGS=-v go test -c ./test/e2e... -o wmcb_e2e_test.exe
test-e2e-prepared-node:
$(GO_BUILD_ARGS) GOOS=windows go test -run=TestBootstrapper ./test/e2e
.PHONY: run-wmcb-ci-e2e-test
run-wmcb-ci-e2e-test:
hack/run-wmcb-ci-e2e-test.sh
.PHONY: verify-all
# TODO: Add other verifications
verify-all:
hack/verify-gofmt.sh
hack/verify-vendor.sh
bindata:
hack/generate-conf-files.sh