forked from SubstrateDevAcademy/exercise-6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 1.03 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
run-tmp:
SKIP_WASM_BUILD= cargo run -- --dev --tmp -lruntime=debug
run:
SKIP_WASM_BUILD= cargo run -- --dev -lruntime=debug
toolchain:
./scripts/init.sh
build:
cargo build
check:
SKIP_WASM_BUILD= cargo check --all --tests
test:
SKIP_WASM_BUILD= cargo test --all
purge:
SKIP_WASM_BUILD= cargo run -- purge-chain --dev -y
restart: purge run
init: toolchain build-full
benchmark:
cargo run --manifest-path node/Cargo.toml --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet '*'
benchmark-output:
cargo run --manifest-path node/Cargo.toml --release --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet pallet_kitties --output runtime/src/weights --execution=wasm
benchmark-traits:
cargo run --manifest-path node/Cargo.toml --release --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet pallet_kitties --output pallets/kitties/src/weights.rs --template=frame-weight-template.hbs
test-benchmark:
cargo test --manifest-path pallets/kitties/Cargo.toml --features runtime-benchmarks -- --nocapture