From 61f8bab65f8419348fde0296d6c63e582cf3f53b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 10 Jan 2024 10:54:39 +1100 Subject: [PATCH] just: Add quick and dirty CI command Add a command that attempts to cove a reasonable useful subset of our CI checks in order to hasten development. --- justfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/justfile b/justfile index 5f8ef24f..b9c33a2b 100644 --- a/justfile +++ b/justfile @@ -17,6 +17,21 @@ lint: 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