forked from bit-country/Metaverse-Network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
88 lines (66 loc) · 2.22 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
.PHONY: init
init:
./scripts/init.sh
.PHONY: check
check: githooks
SKIP_WASM_BUILD= cargo check --features with-metaverse-runtime
.PHONY: check-pioneer
check-pioneer: githooks
SKIP_WASM_BUILD= cargo check --features with-pioneer-runtime
.PHONY: check-continuum
check-continuum: githooks
SKIP_WASM_BUILD= cargo check --features with-continuum-runtime
.PHONY: check-all
check-all: githooks
SKIP_WASM_BUILD= cargo check --features with-pioneer-runtime,with-metaverse-runtime
.PHONY: check-debug
check-debug:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check --features with-metaverse-runtime
.PHONY: check-formatting
check-formatting:
cargo fmt --all -- --check
.PHONY: test
test:
SKIP_WASM_BUILD= cargo test --all --features with-pioneer-runtime,with-metaverse-runtime
.PHONY: test-pioneer
test-pioneer:
SKIP_WASM_BUILD= cargo test --all --features with-pioneer-runtime
.PHONY: run
run:
cargo run --release -- --dev --tmp -lruntime=debug
.PHONY: build
build:
cargo build --release --features with-metaverse-runtime
.PHONY: build-pioneer
build-pioneer:
cargo build --release --features with-pioneer-runtime
.PHONY: build-continuum
build-continuum:
cargo build --release --features with-continuum-runtime
.PHONY: build-benchmarking
build-benchmarking:
cargo build --release --features runtime-benchmarks
.PHONY: build-docker
build-docker:
./scripts/docker_run.sh
.PHONY: build-docker-pioneer
build-docker-pioneer:
./scripts/docker_build_pioneer.sh
.PHONY: run-dev
run-dev:
./target/release/metaverse-node purge-chain --dev
./target/release/metaverse-node --dev --tmp --alice --node-key 0000000000000000000000000000000000000000000000000000000000000001 -lruntime=debug
.PHONY: run-bob-dev
run-bob-dev:
./target/release/metaverse-node --dev --tmp --bob --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp -lruntime=debug
.PHONY: run-chopsticks-pioneer
run-chopsticks-pioneer:
npx @acala-network/chopsticks --config=scripts/chopsticks_pioneer.yml
GITHOOKS_SRC = $(wildcard githooks/*)
GITHOOKS_DEST = $(patsubst githooks/%, .git/hooks/%, $(GITHOOKS_SRC))
.git/hooks:
mkdir .git/hooks
.git/hooks/%: githooks/%
cp $^ $@
.PHONY: githooks
githooks: .git/hooks $(GITHOOKS_DEST)