Merge rust-bitcoin/rust-bitcoin#1468: hashes: ci: Remove --all
56e4e53357
hashes: ci: Remove --all (Tobin C. Harding) Pull request description: Currently we are using the `--all` flag in `cargo` commands in the `hashes` CI script. This flag (the deprecated version of `--workspace`) causes cargo to run the command for the whole workspace, this is not what we want because we run test individually for each crate using a ci script per crate. The effect of this patch is to reduce re-runs of tests i.e., reduce machine usage during CI runs with no reduction of coverage - PROFIT! ACKs for top commit: apoelstra: ACK56e4e53357
sanket1729: utACK56e4e53357
Tree-SHA512: 13134ba2f6806a705f99af5b8d66b051e1e58da177a02ee46880f494e37c380fc4c28731cd42eabbd69ae884763dbc360902e0e8afa7f88e78483e8a37f614f5
This commit is contained in:
commit
249a2cfa2a
|
@ -19,8 +19,8 @@ fi
|
||||||
export CARGO_TERM_VERBOSE=true
|
export CARGO_TERM_VERBOSE=true
|
||||||
|
|
||||||
# Defaults / sanity checks
|
# Defaults / sanity checks
|
||||||
cargo build --all
|
cargo build
|
||||||
cargo test --all
|
cargo test
|
||||||
|
|
||||||
if [ "$DO_LINT" = true ]
|
if [ "$DO_LINT" = true ]
|
||||||
then
|
then
|
||||||
|
@ -28,26 +28,26 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DO_FEATURE_MATRIX" = true ]; then
|
if [ "$DO_FEATURE_MATRIX" = true ]; then
|
||||||
cargo build --all --no-default-features
|
cargo build --no-default-features
|
||||||
cargo test --all --no-default-features
|
cargo test --no-default-features
|
||||||
|
|
||||||
# All features
|
# All features
|
||||||
cargo build --all --no-default-features --features="$FEATURES"
|
cargo build --no-default-features --features="$FEATURES"
|
||||||
cargo test --all --no-default-features --features="$FEATURES"
|
cargo test --no-default-features --features="$FEATURES"
|
||||||
# Single features
|
# Single features
|
||||||
for feature in ${FEATURES}
|
for feature in ${FEATURES}
|
||||||
do
|
do
|
||||||
cargo build --all --no-default-features --features="$feature"
|
cargo build --no-default-features --features="$feature"
|
||||||
cargo test --all --no-default-features --features="$feature"
|
cargo test --no-default-features --features="$feature"
|
||||||
# All combos of two features
|
# All combos of two features
|
||||||
for featuretwo in ${FEATURES}; do
|
for featuretwo in ${FEATURES}; do
|
||||||
cargo build --all --no-default-features --features="$feature $featuretwo"
|
cargo build --no-default-features --features="$feature $featuretwo"
|
||||||
cargo test --all --no-default-features --features="$feature $featuretwo"
|
cargo test --no-default-features --features="$feature $featuretwo"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# Other combos
|
# Other combos
|
||||||
cargo test --all --no-default-features --features="std,schemars"
|
cargo test --no-default-features --features="std,schemars"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DO_SCHEMARS_TESTS" = true ]; then
|
if [ "$DO_SCHEMARS_TESTS" = true ]; then
|
||||||
|
@ -56,7 +56,7 @@ fi
|
||||||
|
|
||||||
# Build the docs if told to (this only works with the nightly toolchain)
|
# Build the docs if told to (this only works with the nightly toolchain)
|
||||||
if [ "$DO_DOCS" = true ]; then
|
if [ "$DO_DOCS" = true ]; then
|
||||||
RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES"
|
RUSTDOCFLAGS="--cfg docsrs" cargo doc --features="$FEATURES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Webassembly stuff
|
# Webassembly stuff
|
||||||
|
@ -74,11 +74,11 @@ if [ "$DO_ASAN" = true ]; then
|
||||||
CC='clang -fsanitize=address -fno-omit-frame-pointer' \
|
CC='clang -fsanitize=address -fno-omit-frame-pointer' \
|
||||||
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \
|
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \
|
||||||
ASAN_OPTIONS='detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \
|
ASAN_OPTIONS='detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \
|
||||||
cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
|
cargo test --lib --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
|
||||||
cargo clean
|
cargo clean
|
||||||
CC='clang -fsanitize=memory -fno-omit-frame-pointer' \
|
CC='clang -fsanitize=memory -fno-omit-frame-pointer' \
|
||||||
RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \
|
RUSTFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins -Cforce-frame-pointers=yes' \
|
||||||
cargo test --lib --all --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
|
cargo test --lib --no-default-features --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bench if told to, only works with non-stable toolchain (nightly, beta).
|
# Bench if told to, only works with non-stable toolchain (nightly, beta).
|
||||||
|
|
Loading…
Reference in New Issue