Merge rust-bitcoin/rust-bitcoin#2416: just: Reduce docs commands

bd4f14ee51 just: Reduce docs commands (Tobin C. Harding)

Pull request description:

  `cargo --doc` works from the workspace root, no need to run the docs builds individually.

  ## More context

  `cargo test` does not run docs tests if run from the workspace root as it does when run in a crate directory.

ACKs for top commit:
  sanket1729:
    utACK bd4f14ee51
  Kixunil:
    ACK bd4f14ee51

Tree-SHA512: f4003edcaf9bbc22cfcdcd142665fbb924b6a74af9145ee38d9f14275660e849d53b2f8d10ee45bf5b6c8e3b5123ead762da3fbc5f84714a55d2fe5273950270
This commit is contained in:
Andrew Poelstra 2024-01-29 22:30:58 +00:00
commit 34c4039963
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 5 deletions

View File

@ -23,11 +23,8 @@ sane: lint
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
# 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