From 5e854742c6f6e9a8484e61fe4513181dfffb2907 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Tue, 27 Nov 2018 22:25:56 -0600 Subject: [PATCH] Make travis count builds as failed when if statements are used. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2e1bd007e..79f2d8882 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,7 +59,7 @@ matrix: - $HOME/wx302 - local-lib after_success: - - if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/linux/travis-deploy-main.sh; fi + - if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/linux/travis-deploy-main.sh || travis_terminate 1; fi - os: linux env: @@ -95,7 +95,7 @@ matrix: - $HOME/Library/Caches/Homebrew - local-lib after_success: - - if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/osx/travis-deploy-main.sh; fi + - if [[ "${TRAVIS_BRANCH}" != "cppgui" ]]; then ./package/osx/travis-deploy-main.sh || travis_terminate 1; fi - os: osx osx_image: xcode9.4