-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathjustfile
More file actions
72 lines (53 loc) · 2.53 KB
/
justfile
File metadata and controls
72 lines (53 loc) · 2.53 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
default:
just --summary --unsorted
test $RUST_BACKTRACE="1" *args="": build-pathfinder-release
cargo nextest run --no-fail-fast --all-targets --features p2p --workspace --locked \
-E 'not (test(/^p2p_network::sync::sync_handlers::tests::prop/) | test(/^consensus::inner::p2p_task::handler_proptest/) | test(/^test::consensus_3_nodes/))' \
{{args}}
test-all-features $RUST_BACKTRACE="1" *args="": build-pathfinder-release
cargo nextest run --no-fail-fast --all-targets --all-features --workspace --locked \
-E 'not (test(/^p2p_network::sync::sync_handlers::tests::prop/) | test(/^consensus::inner::p2p_task::handler_proptest/) | test(/^test::consensus_3_nodes/))' \
{{args}}
test-consensus $RUST_BACKTRACE="1" *args="": build-pathfinder build-feeder-gateway
PATHFINDER_TEST_ENABLE_PORT_MARKER_FILES=1 cargo nextest run --test consensus -p pathfinder --retries 2 --features p2p,consensus-integration-tests --locked \
{{args}}
proptest-sync-handlers $RUST_BACKTRACE="1" *args="":
cargo nextest run --no-fail-fast --retries 2 --all-targets --features p2p --workspace --locked \
-E 'test(/^p2p_network::sync::sync_handlers::tests::prop/)' \
{{args}}
proptest-consensus-handler $RUST_BACKTRACE="1" *args="":
cargo nextest run --no-fail-fast --retries 2 --all-targets --features p2p --workspace --locked \
-E 'test(/^consensus::inner::p2p_task::handler_proptest/)' \
{{args}}
build:
cargo build --workspace --all-targets
build-all-features:
cargo build --workspace --all-targets --all-features
# This target is used in `integration_testing_cli` test.
build-pathfinder-release:
cargo build --release -p pathfinder --bin pathfinder -F p2p,consensus-integration-tests
build-pathfinder:
cargo build -p pathfinder --bin pathfinder -F p2p,consensus-integration-tests
build-feeder-gateway:
cargo build -p feeder-gateway --bin feeder-gateway
check:
cargo check --workspace --all-targets
check-all-features:
cargo check --workspace --all-targets --all-features
fmt:
cargo +nightly fmt --all
clippy *args="":
cargo clippy --workspace --all-targets --features p2p --locked {{args}} -- -D warnings -D rust_2018_idioms
clippy-all-features *args="":
cargo clippy --workspace --all-targets --all-features --locked {{args}} -- -D warnings -D rust_2018_idioms
dep-sort:
cargo sort --check --workspace
doc:
cargo doc --no-deps --document-private-items
release version:
scripts/release.sh {{version}}
alias b := build
alias t := test
alias c := check
alias f := fmt
alias r := release