Skip to content

Commit

Permalink
ci-tests.sh: fail on clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcginty committed Feb 19, 2025
1 parent 49cd825 commit 9eb74df
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
set -e
TARGET="$([ -n "$1" ] && echo "--target $1" || echo "")"

COMMON_FEATURES="p256 xchachapoly vector-tests"
COMMON_FEATURES="use-p256 use-xchacha20poly1305 vector-tests"
if ! rustc -vV | grep 'host: .*windows' &> /dev/null; then
COMMON_FEATURES="hfs use-pqcrypto-kyber1024 $COMMON_FEATURES"
fi

set -x
cargo check --benches --tests --examples
cargo clippy --features "$COMMON_FEATURES"
cargo clippy --features "$COMMON_FEATURES" -- -Dwarnings
cargo test $TARGET --no-default-features
# Custom set of crypto without std
cargo test $TARGET --no-default-features --features "default-resolver use-curve25519 use-blake2 use-chacha20poly1305"
# Custom set of crypto with std
cargo test $TARGET --no-default-features --features "default-resolver use-curve25519 use-sha2 use-chacha20poly1305"
cargo test $TARGET --features "ring-resolver $COMMON_FEATURES"
cargo test $TARGET --features "ring-accelerated $COMMON_FEATURES"
if ! rustc -vV | grep 'host: .*windows' &> /dev/null; then
cargo test $TARGET --features "hfs use-pqcrypto-kyber1024 $COMMON_FEATURES"
cargo test $TARGET --features "ring-resolver hfs use-pqcrypto-kyber1024 $COMMON_FEATURES"
fi
cargo test $TARGET --features "libsodium-resolver $COMMON_FEATURES"
cargo test $TARGET --features "libsodium-accelerated $COMMON_FEATURES"

0 comments on commit 9eb74df

Please sign in to comment.