forked from ComposableFi/composable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
80 lines (69 loc) · 2.09 KB
/
Makefile.toml
File metadata and controls
80 lines (69 loc) · 2.09 KB
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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
NIGHTLY_VERSION = "2022-04-18"
[tasks.fmt]
script = '''
cargo +nightly fmt
'''
workspace = false
[tasks.build]
args = ["build", "--release"]
workspace = false
[tasks.polkadot]
script = '''
if [ ! -d "../polkadot" ] ; then
git clone -b v0.9.27 https://github.com/paritytech/polkadot ../polkadot
fi
cd ../polkadot && cargo build --release
'''
workspace = false
[tasks.start-devnet]
dependencies = ["build", "git-polkadot"]
script = '''
cargo run --release -- --version
cd ../polkadot && cargo run --release -- --version && pwd && cd ../composable
cd scripts/polkadot-launch && yarn && yarn composable
'''
workspace = false
[tasks.start-devnet-docker]
dependencies = []
script = '''
docker run --rm -ti -u$(id -u):$(id -g) -p9944:9944 -p9988:9988 -p9998:9998 composablefi/composable-sandbox:latest
'''
workspace = false
[tasks.remove-composable-sandbox-image]
dependencies = []
script = '''
docker rmi composablefi/composable-sandbox:latest
'''
workspace = false
[tasks.run-unit-tests]
env = { SKIP_WASM_BUILD = 1 }
script = '''
cargo test --workspace --locked --release --verbose
'''
workspace = false
[tasks.style]
script = '''
make style
'''
workspace = false
[tasks.run-local-integration-tests-debug]
description = "fastest way to build and debug runtime in simulator"
env = { RUST_BACKTRACE = "full", RUST_LOG = "trace,parity-db=warn,trie=warn,runtime=trace,substrate-relay=trace,bridge=trace,xcmp=trace,xcm=trace", SKIP_WASM_BUILD = 1 }
script = '''
cargo +stable test --package local-integration-tests --features local-integration-tests --features picasso --no-default-features -- --nocapture --test-threads=1
'''
workspace = false
[tasks.check-ci]
env = { SKIP_WASM_BUILD = 1 }
script = '''
cargo +nightly-$NIGHTLY_VERSION check --benches --all --features runtime-benchmarks # checks all rust crates with default-features, tests, benchmarks
env -u RUSTFLAGS cargo +nightly-$NIGHTLY_VERSION clippy --all-targets --tests -- -D warnings
'''
workspace = false
[tasks.build-benchmarks]
script = '''
cargo build --release --features runtime-benchmarks
'''
workspace = false