forked from bitcoindevkit/bdk-kyoto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (38 loc) · 1.07 KB
/
justfile
File metadata and controls
49 lines (38 loc) · 1.07 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
_default:
@just --list --list-heading $'BDK Kyoto\n'
check:
cargo fmt -- --check
cargo clippy -- -D warnings
cargo check --all-features
# Run a test suite: unit, integration, features, msrv, min-versions.
test suite="unit":
just _test-{{suite}}
# Unit test suite.
_test-unit:
cargo test --lib
cargo test --doc
cargo test --examples
# Run integration tests
_test-integration:
cargo test --tests -- --test-threads 1 --nocapture
# Test that minimum versions of dependency contraints are still valid.
_test-min-versions:
just _delete-lockfile
cargo +nightly check --all-features -Z direct-minimal-versions
# Check code with MSRV compiler.
_test-msrv:
cargo install cargo-msrv@0.18.4
cargo msrv verify
# Run the example: example.
example name="example":
cargo run --example {{name}} --release
# Delete unused files or branches: data, lockfile, branches
delete item="data":
just _delete-{{item}}
_delete-data:
rm -rf light_client_data
rm -rf data
_delete-lockfile:
rm -f Cargo.lock
_delete-branches:
git branch --merged | grep -v \* | xargs git branch -d