Browse Source

build,travis: prevent travis 10m logs timeout

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lilik-openwrt-22.03
Etienne Champetier 7 years ago
parent
commit
a5eb792e1d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      .travis_do.sh

+ 2
- 0
.travis_do.sh View File

@ -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…
Cancel
Save