fix(travis): tail last 500 lines of logs only on failure

This is a workaround suggested by Travis support to workaround the
"The job exceeded the maximum log length, and has been terminated."
error.

Another option would be to upload the logs somewhere, but actually it
might be more convenient not having to scroll down all those logs. We
can revisit this case if some problems will be encountered (like for
example if there's need to see something in the middle).
This commit is contained in:
paweldomas 2018-09-20 14:10:25 -05:00 committed by Paweł Domas
parent 2101f70a09
commit 8282873de5
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
osx_image: xcode9.4
language: objective-c
script:
- "./ios/travis-ci/build-ipa.sh"
- "./ios/travis-ci/build-ipa.sh > build_output.txt"
after_failure:
- "tail -n 500 build_output.txt"