X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2Fcommon.bash;h=ab5c29404a7fffb3635cfb8bade7f5bcf16c688b;hb=71dd2ecc010836cbbe91e4bf7d4a84191a41dd39;hp=73a8b3c53238666c1f92e5b0af8a0d23232aef95;hpb=b58ecb01825f4afa0a13f76b799cd4608bb96ee2;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index 73a8b3c..ab5c294 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -28,11 +28,18 @@ run_or_err() { } extract_prereqs() { + # once --verbose is set, --no-verbose can't disable it + # do this by hand + ORIG_CPANM_OPT="$PERL_CPANM_OPT" + PERL_CPANM_OPT="$( echo $PERL_CPANM_OPT | sed 's/--verbose//' )" + # hack-hack-hack LASTEXIT=0 COMBINED_OUT="$( { stdout="$(cpanm --quiet --scandeps --format tree "$@")" ; } 2>&1; echo "!!!STDERRSTDOUTSEPARATOR!!!$stdout")" \ || LASTEXIT=$? + PERL_CPANM_OPT="$ORIG_CPANM_OPT" + OUT=${COMBINED_OUT#*!!!STDERRSTDOUTSEPARATOR!!!} ERR=$(grep -v " is up to date." <<< "${COMBINED_OUT%!!!STDERRSTDOUTSEPARATOR!!!*}") @@ -56,7 +63,7 @@ parallel_installdeps_notest() { # specify a custom buildlog, hence we just collect the verbose output # and display it in case of failure run_or_err "Installing (without testing) $MODLIST" \ - "echo $MODLIST | xargs -n 1 -P $NUMTHREADS cpanm --verbose --no-interactive --notest --no-man-pages" + "echo $MODLIST | xargs -n 1 -P $NUMTHREADS cpanm --notest --no-man-pages" }