Skip to content

Commit

Permalink
Merge #2326: Improve the justfile
Browse files Browse the repository at this point in the history
61f8bab just: Add quick and dirty CI command (Tobin C. Harding)
e185fe4 just: Lint with nightly toolchain (Tobin C. Harding)

Pull request description:

  Improve the `justfile` by doing:

  - Update linter toolchain
  - Add `just sane` to run a minimal set of checks/tests that can be used pre-push but is not as slow as using `DO_FEATURE_MATRIX=true contrib/test.sh`.

ACKs for top commit:
  apoelstra:
    ACK 61f8bab
  Kixunil:
    ACK 61f8bab

Tree-SHA512: 730874f0381db9ae30052ad6511805f76ae5c13c4c5cc5ad272430cf7e67cfbe7b288aa6dc47035ff5e8e42e03d3e4a3bf9d3e9a072c9aa922f9df62c43850b3
  • Loading branch information
apoelstra committed Jan 27, 2024
2 parents e2b9555 + 61f8bab commit a38cdd5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,27 @@ check:

# Lint everything.
lint:
cargo clippy --workspace --all-targets --all-features -- --deny warnings
cargo +nightly clippy --workspace --all-targets --all-features -- --deny warnings

# Check the formatting
format:
cargo +nightly fmt --all --check

# Quick and dirty CI useful for pre-push checks.
sane: lint
cargo test --quiet --workspace --all-targets --no-default-features > /dev/null || exit 1
cargo test --quiet --workspace --all-targets > /dev/null || exit 1
cargo test --quiet --workspace --all-targets --all-features > /dev/null || exit 1

# Docs tests (these don't run when testing from workspace root)
cargo test --quiet --manifest-path bitcoin/Cargo.toml --doc > /dev/null || exit 1
cargo test --quiet --manifest-path hashes/Cargo.toml --doc > /dev/null || exit 1
cargo test --quiet --manifest-path io/Cargo.toml --doc > /dev/null || exit 1
cargo test --quiet --manifest-path units/Cargo.toml --doc > /dev/null || exit 1
# Make an attempt to catch feature gate problems in doctests
cargo test --manifest-path bitcoin/Cargo.toml --doc --no-default-features > /dev/null || exit 1
# Update the recent and minimal lock files.
update-lock-files:
contrib/update-lock-files.sh

0 comments on commit a38cdd5

Please sign in to comment.