-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·118 lines (106 loc) · 4.65 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.PHONY: run-ulas
run-ulas:
cargo +nightly run --features with-ulas-runtime --release -- --alice --chain=ulas-dev --tmp -lruntime=debug
.PHONY: run-cygnus
run-cygnus:
cargo +nightly run --features with-cygnus-runtime --release -- --alice --chain=cygnus-dev --tmp -lruntime=debug
.PHONY: run-phoenix
run-phoenix:
cargo +nightly run --features with-phoenix-runtime --release -- --alice --chain=phoenix-dev --tmp -lruntime=debug --ws-external --rpc-external --rpc-cors all --ws-port 9944
debug-phoenix:
cargo +nightly run --features with-phoenix-runtime --release -- --alice --chain=phnix-dev --tmp -lruntime=debug --ws-external --rpc-external --rpc-cors all --ws-port 9944 -lerror,runtime::contracts=debug
.PHONY: run-benchmark-ulas
run-benchmark-ulas:
cargo run --features with-ulas-runtime --features runtime-benchmarks --release -- --alice --chain=ulas-dev --tmp -lruntime=debug
.PHONY: run-benchmark-cygnus
run-benchmark-cygnus:
cargo run --features with-cygnus-runtime --features runtime-benchmarks --release -- --alice --chain=cygnus-dev --tmp -lruntime=debug
.PHONY: run-benchmark-phoenix
run-benchmark-phoenix:
cargo run --features with-phoenix-runtime --features runtime-benchmarks --release -- --alice --chain=phoenix-dev --tmp -lruntime=debug
.PHONY: toolchain
toolchain:
./scripts/init.sh
.PHONY: check-debug-ulas
check-debug-ulas:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check --features with-ulas-runtime --release
.PHONY: check-debug-cygnus
check-debug-cygnus:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check --features with-cygnus-runtime --release
.PHONY: check-debug-phoenix
check-debug-phoenix:
RUSTFLAGS="-Z macro-backtrace" SKIP_WASM_BUILD= cargo +nightly check --features with-phoenix-runtime --release
.PHONY: test-ulas-runtime
test-ulas-runtime:
SKIP_WASM_BUILD= cargo test --features with-ulas-runtime -- --nocapture
.PHONY: test-cygnus-runtime
test-cygnus-runtime:
SKIP_WASM_BUILD= cargo test --features with-cygnus-runtime -- --nocapture
.PHONY: test-phoenix-runtime
test-phoenix-runtime:
SKIP_WASM_BUILD= cargo test --features with-phoenix-runtime -- --nocapture
test:
SKIP_WASM_BUILD= cargo test -p bholdus-nft -p support-nft -p bholdus-nft-marketplace -p support-nft-marketplace -- --nocapture
# For CI
.PHONY: test-runtimes
test-runtimes:
SKIP_WASM_BUILD= cargo test --all --features with-all-runtime
.PHONY: test-ulas-benchmarking
test-ulas-benchmarking:
cargo test --features runtime-benchmarks,with-ulas-runtime --all benchmarking
.PHONY: test-cygnus-benchmarking
test-cygnus-benchmarking:
cargo test --features runtime-benchmarks,with-cygnus-runtime --all benchmarking
.PHONY: test-phoenix-benchmarking
test-phoenix-benchmarking:
cargo test --features runtime-benchmarks,with-phoenix-runtime --all benchmarking
.PHONY: test-benchmarking
test-benchmarking:
cargo test --features runtime-benchmarks --features with-all-runtime --features --all benchmarking
.PHONY: check-ulas-try-runtime
check-ulas-try-runtime:
SKIP_WASM_BUILD= cargo check --features try-runtime,with-ulas-runtime
.PHONY: check-cygnus-try-runtime
check-cygnus-try-runtime:
SKIP_WASM_BUILD= cargo check --features try-runtime,with-cygnus-runtime
.PHONY: check-phoenix-try-runtime
check-phoenix-try-runtime:
SKIP_WASM_BUILD= cargo check --features try-runtime,with-phoenix-runtime
.PHONY: check-try-runtime
check-try-runtime:
SKIP_WASM_BUILD= cargo check --features try-runtime --features with-all-runtime
# Run the try-runtime
.PHONY: run-ulas-try-runtime
run-ulas-try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run --features try-runtime,with-ulas-runtime try-runtime \
--chain ulas-dev \
on-runtime-upgrade \
live \
--uri wss://blockchain-wss-0.bho.network/ \
.PHONY: run-cygnus-try-runtime
run-cygnus-try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run --features try-runtime,with-cygnus-runtime try-runtime \
--chain cygnus-dev \
on-runtime-upgrade \
live \
--uri wss://blockchain-wss-0.testnet.bholdus.net/ \
.PHONY: run-phoenix-try-runtime
run-phoenix-try-runtime:
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run --features try-runtime,with-phoenix-runtime try-runtime \
--chain phoenix-dev \
on-runtime-upgrade \
live \
--uri wss://blockchain-wss-0.dev.bholdus.net/ \
# Build WASM runtime only
.PHONY: build-ulas-runtime-wasm
build-ulas-runtime-wasm:
PACKAGE=ulas-runtime ./scripts/srtool_build.sh
.PHONY: build-cygnus-runtime-wasm
build-cygnus-runtime-wasm:
PACKAGE=cygnus-runtime ./scripts/srtool_build.sh
.PHONY: build-phoenix-runtime-wasm
build-phoenix-runtime-wasm:
PACKAGE=phoenix-runtime ./scripts/srtool_build.sh