-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
73 lines (53 loc) · 2.08 KB
/
justfile
File metadata and controls
73 lines (53 loc) · 2.08 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
set shell := ["bash", "-euo", "pipefail", "-c"]
default:
@just --list
check:
cargo check --workspace
check-all-targets:
cargo check --workspace --all-targets
test:
cargo test --workspace
# Run sequencer tests sequentially so partition static config (init) is not shared across parallel tests.
test-sequencer:
cargo test -p sequencer --lib -- --test-threads=1
cargo test -p sequencer --test e2e_sequencer -- --test-threads=1
cargo test -p sequencer --test ws_broadcaster -- --test-threads=1
cargo test -p sequencer --test batch_submitter_integration -- --test-threads=1
test-rollups-e2e: setup ensure-machine-image
cargo build -p sequencer --bin sequencer-devnet -p rollups-e2e
cargo run -p rollups-e2e
ensure-machine-image:
@test -d examples/canonical-app/out/canonical-machine-image || just canonical-build-machine-image
bench target="all":
just -f tests/benchmarks/justfile {{target}}
setup:
just -f examples/canonical-app/justfile download-deps
just -f tests/benchmarks/justfile setup
canonical-build-machine-image:
just -f examples/canonical-app/justfile build-machine-image
canonical-build-machine-image-sepolia:
just -f examples/canonical-app/justfile build-machine-image-sepolia
canonical-test-guest:
just -f examples/canonical-app/justfile test-guest
canonical-print-build-hashes:
just -f examples/canonical-app/justfile print-build-hashes
clean:
cargo clean
rm -rf sequencer-data
just -f examples/canonical-app/justfile clean
just -f tests/benchmarks/justfile clean
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all --check
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings
verify: fmt-check check test clippy
ci:
cargo check --workspace --all-targets --locked
cargo build --workspace --all-targets --locked
cargo fmt --all -- --check
cargo test --workspace --all-targets --all-features --locked
run addr="127.0.0.1:3000" data_dir="sequencer-data":
rm -rf {{data_dir}}
SEQ_HTTP_ADDR={{addr}} SEQ_DATA_DIR={{data_dir}} cargo run -p sequencer --release