build,travis: prevent travis 10m logs timeout
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
parent
da2cc49d29
commit
a5eb792e1d
1 changed files with 2 additions and 0 deletions
|
@ -16,8 +16,10 @@ echo_blue() { printf "\033[1;34m$*\033[m\n"; }
|
|||
exec_status() {
|
||||
PATTERN="$1"
|
||||
shift
|
||||
while :;do sleep 590;echo "still running (please don't kill me Travis)";done &
|
||||
("$@" 2>&1) | tee logoutput
|
||||
R=${PIPESTATUS[0]}
|
||||
kill $!
|
||||
if [ $R -ne 0 ]; then
|
||||
echo_red "=> '$*' failed (return code $R)"
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue