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: utACKbd4f14ee51
Kixunil: ACKbd4f14ee51
Tree-SHA512: f4003edcaf9bbc22cfcdcd142665fbb924b6a74af9145ee38d9f14275660e849d53b2f8d10ee45bf5b6c8e3b5123ead762da3fbc5f84714a55d2fe5273950270
This commit is contained in:
commit
34c4039963
7
justfile
7
justfile
|
@ -23,11 +23,8 @@ sane: lint
|
||||||
cargo test --quiet --workspace --all-targets > /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
|
cargo test --quiet --workspace --all-targets --all-features > /dev/null || exit 1
|
||||||
|
|
||||||
# Docs tests (these don't run when testing from workspace root)
|
# doctests don't get run from workspace root with `cargo test`.
|
||||||
cargo test --quiet --manifest-path bitcoin/Cargo.toml --doc > /dev/null || exit 1
|
cargo test --quiet --workspace --doc || 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
|
# 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
|
cargo test --manifest-path bitcoin/Cargo.toml --doc --no-default-features > /dev/null || exit 1
|
||||||
|
|
Loading…
Reference in New Issue