Travis: don't use --manifest-path for Clippy

For some reason, `cargo clippy` ignores the tests when run with the
`--manifest-path` option.
This commit is contained in:
Chris Wong 2017-07-31 22:05:23 +12:00
parent c57d41e1a6
commit bd228c01a9

View file

@ -12,7 +12,7 @@ script:
if command -v cargo-clippy > /dev/null; then 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
cargo clippy --manifest-path $package/Cargo.toml -- -D warnings || CLIPPY_STATUS=$? (cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
done done
(exit $CLIPPY_STATUS) (exit $CLIPPY_STATUS)
fi fi