-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
70 lines (53 loc) · 1.87 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
.PHONY: build
build:
cargo build --release --locked
.PHONY: check
check:
cargo check --release
.PHONY: build-benchmarks
build-benchmarks:
cargo build --release --features runtime-benchmarks
.PHONY: test
test:
cargo test --locked
.PHONY: test-release
test-release:
cargo test --release --locked
.PHONY: test-benchmarks
test-benchmarks:
cargo test --release --features runtime-benchmarks
.PHONY: coverage
coverage:
cargo tarpaulin --avoid-cfg-tarpaulin --all-features --workspace --locked --exclude-files node/* --exclude-files runtime/* --exclude-files infrastructure/* --exclude-files **/weights.rs --ignore-tests -o Xml -o lcov
.PHONY: clippy
clippy:
cargo clippy --release --locked --all-targets -- -D warnings -A deprecated
.PHONY: clippy-all
clippy-all:
cargo clippy --release --locked --all-targets --all-features -- -D warnings -A deprecated
.PHONY: format
format:
cargo fmt
.PHONY: try-runtime
try-runtime:
cargo build --release --features try-runtime
try-runtime --runtime ./target/release/wbuild/basilisk-runtime/basilisk_runtime.wasm on-runtime-upgrade --checks all live --uri wss://rpc.basilisk.cloud:443
.PHONY: build-docs
build-docs:
cargo doc --release --target-dir ./Basilisk-dev-docs --no-deps
.PHONY: clean
clean:
cargo clean
.PHONY: docker
docker: build
ln -f $(CURDIR)/target/release/basilisk $(CURDIR)/basilisk
docker build --tag basilisk .
rm $(CURDIR)/basilisk
checksum:
sha256sum target/release/basilisk > target/release/basilisk.sha256
cp target/release/wbuild/basilisk-runtime/basilisk_runtime.compact.compressed.wasm target/release/
sha256sum target/release/basilisk_runtime.compact.compressed.wasm > target/release/basilisk_runtime.compact.compressed.wasm.sha256
release: build checksum
all: clippy test test-benchmarks build build-benchmarks checksum
chopstics: release
npx @acala-network/chopsticks --parachain=launch-configs/chopsticks/basilisk.yml