Skip to content

Commit

Permalink
Travis: Don't fail if clippy / rustfmt is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Jul 7, 2019
1 parent 14a5211 commit 9feadd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ matrix:
- rust: nightly

script:
- ( rustup component list | grep -q clippy ) &&
cargo fmt --all -- --check
- ( rustup component list | grep -q rustfmt ) &&
cargo clippy --all --all-targets --features "$ALL_FEATURES" -- -D warnings
- if ( rustup component list | grep -q clippy ); then cargo fmt --all -- --check; fi
- |
if ( rustup component list | grep -q rustfmt ); then
cargo clippy --all --all-targets --features "$ALL_FEATURES" -- -D warnings
fi
# Almost all tests without std / no_std mode
- cargo test --all --no-default-features --verbose
# Almost all tests with std features enabled
Expand Down

0 comments on commit 9feadd6

Please sign in to comment.