build: Fix stale builds

This commit is contained in:
Lzu Tao 2019-06-28 23:14:26 +07:00
parent 1ce1401263
commit ba41d73dc3
1 changed files with 1 additions and 3 deletions

View File

@ -45,10 +45,8 @@ script:
- cargo test --all - cargo test --all
- cargo test --all --no-default-features - cargo test --all --no-default-features
- | - |
sh -ex;
if [ "$TARGET" = x86_64-unknown-linux-gnu ] && [ "$TRAVIS_RUST_VERSION" = stable ]; then if [ "$TARGET" = x86_64-unknown-linux-gnu ] && [ "$TRAVIS_RUST_VERSION" = stable ]; then
rustup component add rustfmt; rustup component add rustfmt && \
rustfmt -vV;
cargo fmt --all -- --check; cargo fmt --all -- --check;
fi fi