forked from robustmq/robustmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
66 lines (51 loc) · 1.81 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
# The arguments for building images.
VERSION:=$(shell grep "version =" Cargo.toml | awk -F'"' '{print $2}' | head -n 1 | sed 's/version = //g')
##@ Build
.PHONY: build
build: ## Build local machine version robustmq.
sh scripts/build-release.sh local $(VERSION)
.PHONY: build-mac-release
build-mac-release: ## Build mac version robustmq.
sh scripts/build-release.sh mac $(VERSION)
.PHONY: build-linux-release
build-linux-release: ## Build linux version robustmq.
sh scripts/build-release.sh linux $(VERSION)
.PHONY: build-win-release
build-win-release: ## Build win version robustmq.
sh scripts/build-release.sh win $(VERSION)
.PHONY: build-arm-release
build-arm-release: ## Build arm version robustmq.
sh scripts/build-release.sh arm $(VERSION)
##@ Test
.PHONY: test
test: ## Unit testing for Robustmq
sh ./scripts/unit-test.sh dev
.PHONY: test-ci
test-ci:
sh ./scripts/unit-test.sh ci
.PHONY: mqtt-ig-test
mqtt-ig-test: ## Integration testing for MQTT Broker
sh ./scripts/mqtt-ig-test.sh dev
.PHONY: mqtt-ig-test-ci
mqtt-ig-test-ci:
sh ./scripts/mqtt-ig-test.sh ci
.PHONY: place-ig-test
place-ig-test: ## Integration testing for Placement Center
sh ./scripts/place-ig-test.sh dev
.PHONY: place-ig-test-ci
place-ig-test-ci:
sh ./scripts/place-ig-test.sh ci
.PHONY: journal-ig-test
journal-ig-test: ## Integration testing for Journal Engine
sh ./scripts/journal-ig-test.sh dev
.PHONY: journal-ig-test
journal-ig-test-ci:
sh ./scripts/journal-ig-test.sh ci
##@ Other
.PHONY: clean
clean: ## Clean the project.
cargo clean
rm -rf build
.PHONY: help
help: ## Display help messages.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)