forked from openshift/windows-machine-config-bootstrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1.4 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
all: build build-tools build-wmcb-unit-test build-wmcb-e2e-test verify-all
PACKAGE=github.com/openshift/windows-machine-config-bootstrapper
MAIN_PACKAGE=$(PACKAGE)/cmd/bootstrapper
TOOLS_DIR=$(PACKAGE)/tools/windows-node-installer
GO_BUILD_ARGS=CGO_ENABLED=0 GO111MODULE=on
# TODO (suhanime): Export GOPATH if not set
# TODO (suhanime): Pin go versions and lint
# TODO (suhanime): Enable linting when we don't have unimplemented methods
.PHONY: build
build:
$(GO_BUILD_ARGS) GOOS=windows go build -o wmcb.exe $(MAIN_PACKAGE)
.PHONY: build-wmcb-unit-test
build-wmcb-unit-test:
$(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:
$(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: build-tools
build-tools:
cd ./tools/windows-node-installer && $(GO_BUILD_ARGS) go build -o wni $(TOOLS_DIR)
.PHONY: test-e2e-tools
test-e2e-tools:
cd ./tools/windows-node-installer && $(GO_BUILD_ARGS) go test -run=TestAwsE2eSerial $(TOOLS_DIR)/test/e2e/... -timeout 20m -v
.PHONY: run-wmcb-ci-e2e-test
run-wmcb-ci-e2e-test:
hack/run-wmcb-ci-e2e-test.sh
.PHONY: run-wsu-ci-e2e-test
run-wsu-ci-e2e-test:
hack/run-wsu-ci-e2e-test.sh
.PHONY: verify-all
# TODO: Add other verifications
verify-all:
hack/verify-gofmt.sh