From 17beaa5263807e03ffaeb8ea0caaaf461607a6af Mon Sep 17 00:00:00 2001 From: Taiyeba Date: Wed, 22 May 2019 09:26:29 +0200 Subject: [PATCH] travis: return 1 if condition is false --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4f43e18..9b10c5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,15 +27,15 @@ before_script: script: - conan install hello_world -pr clang-6.0-macos-x86_64 - source activate.sh - - cmake hello_world + - cmake -DFOR_PRODUCTION=OFF hello_world - cmake --build . - - gtimeout 7 boot hello > hello_log.txt || true + - gtimeout 10 boot hello 2>&1 | tee hello.log || true - | - if grep -F "Running [ Hello world - OS included ]" hello_log.txt + if grep -F "Running [ Hello world - OS included ]" hello.log then echo "Hello World - Success! :)" else - echo "Failed :(" + exit 1 fi after_script: