Install Clippy from rustup
This commit is contained in:
parent
8dbcdab2bf
commit
d7d3eb600e
1 changed files with 6 additions and 9 deletions
15
.travis.yml
15
.travis.yml
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue