From 8e1536b59ba2614acba81005edc79cfc80b3046c Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 27 Aug 2019 15:42:55 -0700 Subject: [PATCH] Restructure Travis config to fail fast --- .travis.yml | 7 +++---- bin/run-tests.sh | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 bin/run-tests.sh diff --git a/.travis.yml b/.travis.yml index 35cf2188..5fb8a2b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + + script: ./bin/run-tests.sh \ No newline at end of file diff --git a/bin/run-tests.sh b/bin/run-tests.sh new file mode 100644 index 00000000..b218506d --- /dev/null +++ b/bin/run-tests.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -ev + +cargo test --locked --verbose +cargo fmt -- --check +cargo clippy \ No newline at end of file