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-Tag: v0.08260~117 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c86519d7c54ad69e5da97f6c2ccb469d50f49129;hp=28f33cbb9a9dde69e4f05a0cf47493624e6ffa21;p=dbsrgits%2FDBIx-Class.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