maud/.travis.yml
Chris Wong bd228c01a9 Travis: don't use --manifest-path for Clippy
For some reason, `cargo clippy` ignores the tests when run with the
`--manifest-path` option.
2017-07-31 22:05:23 +12:00

18 lines
451 B
YAML

language: rust
rust: nightly
sudo: false
before_script:
- cargo install clippy || true
- export PATH=$HOME/.cargo/bin:$PATH
script:
- cargo test --all --all-features
- |
if command -v cargo-clippy > /dev/null; then
CLIPPY_STATUS=0
for package in maud_htmlescape maud_macros maud maud_lints maud_extras; do
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
done
(exit $CLIPPY_STATUS)
fi