From 420892d7a996db5430c042cdccbbc0ac7d078177 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Tue, 1 Jan 2019 11:19:30 -0500 Subject: [PATCH] travis: Make sure error codes propagate outside of the if clause --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fbcfaada..dee0cb657 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,6 @@ matrix: install: # Build the docker container - pushd $TRAVIS_BUILD_DIR - - if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER; fi + - if [[ $CONTAINER != "osx" ]]; then docker-compose build test-$CONTAINER || exit 1; fi script: - - if [[ $CONTAINER != "osx" ]]; then docker-compose up test-$CONTAINER; else bash test/scripts/test_osx.sh ; fi + - if [[ $CONTAINER != "osx" ]]; then docker-compose up test-$CONTAINER || exit 1; else bash test/scripts/test_osx.sh || exit 1 ; fi