Skip to content

Commit 9eb74df

Browse files
committed
ci-tests.sh: fail on clippy warnings
1 parent 49cd825 commit 9eb74df

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ci-tests.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22
set -e
33
TARGET="$([ -n "$1" ] && echo "--target $1" || echo "")"
44

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

710
set -x
811
cargo check --benches --tests --examples
9-
cargo clippy --features "$COMMON_FEATURES"
12+
cargo clippy --features "$COMMON_FEATURES" -- -Dwarnings
1013
cargo test $TARGET --no-default-features
1114
# Custom set of crypto without std
1215
cargo test $TARGET --no-default-features --features "default-resolver use-curve25519 use-blake2 use-chacha20poly1305"
1316
# Custom set of crypto with std
1417
cargo test $TARGET --no-default-features --features "default-resolver use-curve25519 use-sha2 use-chacha20poly1305"
1518
cargo test $TARGET --features "ring-resolver $COMMON_FEATURES"
1619
cargo test $TARGET --features "ring-accelerated $COMMON_FEATURES"
17-
if ! rustc -vV | grep 'host: .*windows' &> /dev/null; then
18-
cargo test $TARGET --features "hfs use-pqcrypto-kyber1024 $COMMON_FEATURES"
19-
cargo test $TARGET --features "ring-resolver hfs use-pqcrypto-kyber1024 $COMMON_FEATURES"
20-
fi
2120
cargo test $TARGET --features "libsodium-resolver $COMMON_FEATURES"
2221
cargo test $TARGET --features "libsodium-accelerated $COMMON_FEATURES"

0 commit comments

Comments
 (0)