Skip to content

Commit 2d4b6e7

Browse files
committed
Enable clippy in CI.
1 parent ab7ed07 commit 2d4b6e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/script.sh

+9
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ main() {
3131
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
3232
./check-blobs.sh
3333
fi
34+
35+
if [ $TRAVIS_RUST_VERSION = nightly ]; then
36+
# Get the latest nightly with a working clippy
37+
rustup toolchain uninstall nightly
38+
rustup set profile default
39+
rustup default nightly
40+
rustup target add $TARGET
41+
cargo clippy --target $TARGET -- -D warnings
42+
fi
3443
}
3544

3645
main

0 commit comments

Comments
 (0)