maud/.travis.yml
2017-03-07 21:36:51 +13:00

20 lines
766 B
YAML

language: rust
rust: nightly
sudo: false
before_script:
- cargo install clippy || true
- export PATH=$HOME/.cargo/bin:$PATH
script:
- |
if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
echo 'Checking for tabs'
! git diff --name-only --diff-filter=ACMR "$TRAVIS_COMMIT_RANGE" | xargs grep $'\t'
fi
- ( cd maud && cargo test --all-features )
- if command -v cargo-clippy > /dev/null; then ( cd maud && cargo clippy -- -D warnings ); fi
- ( cd maud_macros && cargo test --all-features )
- if command -v cargo-clippy > /dev/null; then ( cd maud_macros && cargo clippy -- -D warnings ); fi
- ( cd maud_extras && cargo test --all-features )
- if command -v cargo-clippy > /dev/null; then ( cd maud_extras && cargo clippy -- -D warnings ); fi