Skip to content

Commit 756dc3b

Browse files
committed
add cargo clippy runs to see if it can build successfully (rust-lang#143)
1 parent 31867f2 commit 756dc3b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ci/set_rust_version.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
set -e
33
rustup default $1
4-
rustup target add $2
4+
rustup target add $2

ci/test.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@ set -x
6767
$CROSS test --features zlib --target $TARGET_TRIPLE
6868
$CROSS test --features zlib-default --no-default-features --target $TARGET_TRIPLE
6969
$CROSS test --features zlib-ng --no-default-features --target $TARGET_TRIPLE
70-
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE
70+
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE
71+
72+
if rustup component list | grep clippy &>/dev/null; then
73+
$CROSS clippy --features zlib-ng --no-default-features --target $TARGET_TRIPLE
74+
$CROSS clippy --features zlib --target $TARGET_TRIPLE
75+
$CROSS clippy --features zlib-default --no-default-features --target $TARGET_TRIPLE
76+
fi

0 commit comments

Comments
 (0)