Install Clippy from rustup

This commit is contained in:
Chris Wong 2018-07-18 19:52:58 +12:00
parent 8dbcdab2bf
commit d7d3eb600e

View file

@ -3,8 +3,7 @@ rust: nightly
sudo: false sudo: false
before_script: before_script:
- cargo install clippy || true - rustup component add clippy-preview --toolchain=nightly
- export PATH=$HOME/.cargo/bin:$PATH
script: script:
- cargo build --features="iron" - cargo build --features="iron"
@ -12,10 +11,8 @@ script:
- cargo build --features="actix-web" - cargo build --features="actix-web"
- cargo test --all - cargo test --all
- | - |
if command -v cargo-clippy > /dev/null; then CLIPPY_STATUS=0
CLIPPY_STATUS=0 for package in maud_htmlescape maud_macros maud maud_lints maud_extras; do
for package in maud_htmlescape maud_macros maud maud_lints maud_extras; do (cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$? done
done (exit $CLIPPY_STATUS)
(exit $CLIPPY_STATUS)
fi