Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Don't run rustfmt in nightly #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ before_script:
- rustup component add rustfmt
- rustup target add thumbv7em-none-eabihf # Any target that does not have a standard library will do
script:
- cargo fmt --all -- --check
- echo "$TRAVIS_RUST_VERSION"
# Don't run rustfmt in nightly because it might not be available there.
- [[ echo "$TRAVIS_RUST_VERSION" | grep -v "nightly" ]]
|| cargo fmt --all -- --check
- (rustup component add clippy && cargo clippy --all -- -D clippy::all) || true
- cargo build
- cargo test
Expand Down