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

Commit

Permalink
Don't abort build when clippy fails
Browse files Browse the repository at this point in the history
Before, if the `clippy` check would fail `exit 0` would be called which
exited the test script. This meant that all subsequent steps would be
skipped and the test would pass.

Now instead of exiting the test script we just make sure that the script
always return a zero exit code.
  • Loading branch information
Thomas Scholtes authored and pyfisch committed Sep 7, 2019
1 parent 6dab6b1 commit 86a8fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ before_script:
- rustup target add thumbv7em-none-eabihf # Any target that does not have a standard library will do
script:
- cargo fmt --all -- --check
- (rustup component add clippy && cargo clippy --all --all-features -- -D clippy::all) || exit 0
- (rustup component add clippy && cargo clippy --all --all-features -- -D clippy::all) || true
- cargo build
- cargo test
- cargo build --no-default-features --target thumbv7em-none-eabihf # Test we can build a platform that does not have std.
Expand Down

0 comments on commit 86a8fe3

Please sign in to comment.