maud/.travis.yml
2018-04-16 20:49:12 +12:00

20 lines
574 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
# TODO add `maud_extras` back in when Clippy issue is fixed
# https://github.com/rust-lang-nursery/rust-clippy/issues/2594
for package in maud_htmlescape maud_macros maud maud_lints; do
(cd $package && cargo clippy -- -D warnings) || CLIPPY_STATUS=$?
done
(exit $CLIPPY_STATUS)
fi