Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Add justfile and nightly config
Browse files Browse the repository at this point in the history
In preparation for using a pinned nightly in CI add a `nightly-version`
file and also a `justfile` that uses it.
  • Loading branch information
tcharding committed Aug 8, 2024
1 parent 2179ad9 commit f749975
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
default:
@just --list

# Cargo build everything.
build:
cargo build --workspace --all-targets --all-features

# Cargo check everything.
check:
cargo check --workspace --all-targets --all-features

# Lint everything.
lint:
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings

# Run cargo fmt
fmt:
cargo +$(cat ./nightly-version) fmt --all

# Check the formatting
format:
cargo +$(cat ./nightly-version) 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

# doctests don't get run from workspace root with `cargo test`.
cargo test --quiet --workspace --doc || 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
1 change: 1 addition & 0 deletions nightly-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2024-08-04

0 comments on commit f749975

Please sign in to comment.