From: Peter Rabbitson Date: Fri, 11 Oct 2013 10:12:53 +0000 (+0200) Subject: Add a 9m soft / 9.5m hard timeout option to bin/cpan runs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c86519d7c54ad69e5da97f6c2ccb469d50f49129;p=dbsrgits%2FDBIx-Class-Historic.git Add a 9m soft / 9.5m hard timeout option to bin/cpan runs This makes sure we do not abort a travis run without meaningful output --- diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index 4fb0819..230d140 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -114,7 +114,7 @@ installdeps() { if [[ "$LASTEXIT" = "0" ]] ; then echo_err "done (took ${DELTA_TIME}s)" else - echo_err -n "failed (Exit:$LASTEXIT Log:$(/usr/bin/nopaste -q -s Shadowcat -d "Parallel installfail" <<< "$LASTOUT")) retrying with sequential testing ... " + echo_err -n "failed (after ${DELTA_TIME}s Exit:$LASTEXIT Log:$(/usr/bin/nopaste -q -s Shadowcat -d "Parallel installfail" <<< "$LASTOUT")) retrying with sequential testing ... " HARNESS_OPTIONS="" LASTEXIT=0 @@ -136,7 +136,7 @@ installdeps() { } cpan_inst() { - cpan "$@" 2>&1 + /usr/bin/timeout --kill-after=9.5m --signal=TERM 9m cpan "$@" 2>&1 # older perls do not have a CPAN which can exit with error on failed install for m in "$@"; do