Skip to content

Commit 17beaa5

Browse files
committed
travis: return 1 if condition is false
1 parent a76a366 commit 17beaa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ before_script:
2727
script:
2828
- conan install hello_world -pr clang-6.0-macos-x86_64
2929
- source activate.sh
30-
- cmake hello_world
30+
- cmake -DFOR_PRODUCTION=OFF hello_world
3131
- cmake --build .
32-
- gtimeout 7 boot hello > hello_log.txt || true
32+
- gtimeout 10 boot hello 2>&1 | tee hello.log || true
3333
- |
34-
if grep -F "Running [ Hello world - OS included ]" hello_log.txt
34+
if grep -F "Running [ Hello world - OS included ]" hello.log
3535
then
3636
echo "Hello World - Success! :)"
3737
else
38-
echo "Failed :("
38+
exit 1
3939
fi
4040
4141
after_script:

0 commit comments

Comments
 (0)