Skip to content

Commit

Permalink
travis: return 1 if condition is false
Browse files Browse the repository at this point in the history
  • Loading branch information
staiyeba committed May 22, 2019
1 parent a76a366 commit 17beaa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 17beaa5

Please sign in to comment.