2014-12-17 21:29:25 +13:00
|
|
|
language: rust
|
2015-05-26 22:35:10 +12:00
|
|
|
rust: nightly
|
2015-04-15 18:18:12 +12:00
|
|
|
sudo: false
|
2016-11-06 12:49:44 +13:00
|
|
|
|
|
|
|
before_script:
|
2016-12-12 21:33:50 +13:00
|
|
|
- cargo install clippy || true
|
2016-12-17 14:18:48 +13:00
|
|
|
- export PATH=$HOME/.cargo/bin:$PATH
|
2016-11-06 12:49:44 +13:00
|
|
|
|
2014-12-17 21:29:25 +13:00
|
|
|
script:
|
2017-03-07 21:36:51 +13:00
|
|
|
- |
|
|
|
|
if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
|
2017-03-07 21:46:02 +13:00
|
|
|
printf 'Checking for tabs in %s\n' "$TRAVIS_COMMIT_RANGE"
|
2017-03-07 21:36:51 +13:00
|
|
|
! git diff --name-only --diff-filter=ACMR "$TRAVIS_COMMIT_RANGE" | xargs grep $'\t'
|
|
|
|
fi
|
2016-11-06 12:49:44 +13:00
|
|
|
- ( cd maud && cargo test --all-features )
|
2016-12-17 14:18:48 +13:00
|
|
|
- if command -v cargo-clippy > /dev/null; then ( cd maud && cargo clippy -- -D warnings ); fi
|
2016-11-06 12:49:44 +13:00
|
|
|
- ( cd maud_macros && cargo test --all-features )
|
2017-07-08 20:21:04 +12:00
|
|
|
# Silence `collapsible_if` warnings for now -- see https://github.com/lfairy/maud/issues/93
|
|
|
|
- if command -v cargo-clippy > /dev/null; then ( cd maud_macros && cargo clippy -- -D warnings -A collapsible_if ); fi
|
2016-11-22 22:17:15 +13:00
|
|
|
- ( cd maud_extras && cargo test --all-features )
|
2016-12-17 14:18:48 +13:00
|
|
|
- if command -v cargo-clippy > /dev/null; then ( cd maud_extras && cargo clippy -- -D warnings ); fi
|