-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathjustfile
More file actions
39 lines (30 loc) · 1.04 KB
/
Copy pathjustfile
File metadata and controls
39 lines (30 loc) · 1.04 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
alias ulf := update-lock-files
export RBMT_LOG_LEVEL := env_var_or_default("RBMT_LOG_LEVEL", "progress")
_default:
@just --list
# Install workspace tools including rbmt.
[group('system')]
@tools:
cargo install --quiet --git https://git.rust-bitcoin.org/rust-bitcoin/rust-bitcoin-maintainer-tools --rev $(cat {{justfile_directory()}}/rbmt-version) cargo-rbmt
cargo rbmt toolchains
cargo rbmt tools
# Setup rbmt and run with given args.
@rbmt *args: tools
cargo rbmt {{args}}
# Update lock files.
[group('ci')]
@update-lock-files: (rbmt "lock")
cargo check --manifest-path {{justfile_directory()}}/bitcoind-tests/Cargo.toml
cargo check --manifest-path {{justfile_directory()}}/fuzz/Cargo.toml
# Format workspace.
[group('ci')]
@fmt: (rbmt "fmt")
# Lint workspace.
[group('ci')]
@lint: (rbmt "lint")
# Bitcoin core integration tests.
[group('ci')]
integration: (rbmt "integration")
# Test bitcoind integration with a bitcoind version.
test-bitcoind version="29_0":
cd {{justfile_directory()}}/bitcoind-tests && cargo test --features={{version}}