Restructure Travis config to fail fast

This commit is contained in:
Lucien Greathouse
2019-08-27 15:42:55 -07:00
parent aed160994a
commit 8e1536b59b
2 changed files with 10 additions and 4 deletions

View File

@@ -40,9 +40,8 @@ matrix:
rust: stable
cache: cargo
script:
install:
- rustup component add rustfmt
- rustup component add clippy
- cargo test --locked --verbose
- cargo fmt -- --check
- cargo clippy
script: ./bin/run-tests.sh

7
bin/run-tests.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -ev
cargo test --locked --verbose
cargo fmt -- --check
cargo clippy