From 1a876a70de5f8f498f8b1816e1d6220a669c339d Mon Sep 17 00:00:00 2001 From: Aladeen Date: Thu, 8 Nov 2018 18:19:37 +0100 Subject: [PATCH] travis should immediately fail when lint or test_format fails (#1172) Fixes #1104 --- .travis.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a50ae3db49..6a807f3abe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,12 +87,14 @@ install: before_script: - ./tools/setup.py script: -- ./tools/lint.py -- ./tools/test_format.py -- bash -c "sleep 2100; pkill ninja; pkill cargo" & -- ./tools/build.py -j2 -- RUSTC_WRAPPER=sccache cargo check -j2 --release -- ./tools/test.py $DENO_BUILD_PATH +- |- + set -e + ./tools/lint.py + ./tools/test_format.py + bash -c "sleep 2100; pkill ninja; pkill cargo" & + ./tools/build.py -j2 + RUSTC_WRAPPER=sccache cargo check -j2 --release + ./tools/test.py $DENO_BUILD_PATH after_script: - ccache --show-stats - sccache --stop-server