-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (32 loc) · 1.05 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
run-tmp:
cargo run -- --dev --tmp -lruntime=debug
purge:
cargo run -- purge-chain --dev -y
restart: purge run
.PHONY: init
init:
./scripts/init.sh
.PHONY: check
check:
SKIP_WASM_BUILD=1 cargo check --release
.PHONY: test
test:
SKIP_WASM_BUILD=1 cargo test --release --all
.PHONY: run
run:
cargo run --release -- --dev --tmp
.PHONY: build
build:
cargo build --release
.PHONY: benchmark
benchmark:
cargo run --manifest-path node/Cargo.toml --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet '*'
.PHONY: benchmark-output
benchmark-output:
cd runtime/src/weights && cargo run --manifest-path ../../../node/Cargo.toml --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet pallet_kitties --output
.PHONY: benchmark-traits
benchmark-traits:
cargo run --manifest-path node/Cargo.toml --features runtime-benchmarks -- benchmark --extrinsic '*' --pallet pallet_kitties --weight-trait --output
.PHONY: test-benchmark
test-benchmark:
cargo test --manifest-path pallets/kitties/Cargo.toml --features runtime-benchmarks -- --nocapture