Skip to content

Commit 885e109

Browse files
committed
Run clippy on Travis-CI
1 parent d69f5ff commit 885e109

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dist/travis.sh

+10
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ if $is_main_build ; then
148148
fi
149149
travis_end_fold check_rustfmt
150150

151+
rustup component add clippy
152+
153+
# Check that the code is properly clippy'd.
154+
155+
travis_start_fold check_clippy "Maybe check clippy? ($is_main_build)"
156+
if $is_main_build ; then
157+
cargo clippy --all-targets --all-features -- -D warnings
158+
fi
159+
travis_end_fold check_clippy
160+
151161
# OK, the biggie: does it compile and pass the test suite?
152162

153163
travis_start_fold build_and_test "Build and test"

0 commit comments

Comments
 (0)