Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only display output of failed workers in parallel_installdeps_notest

  • Loading branch information...
commit 10e248bf59ce89642a6f366fc7b83e90a56797ac 1 parent 91d48c5
Peter Rabbitson ribasushi authored
Showing with 15 additions and 2 deletions.
  1. +15 −2 maint/travis-ci_scripts/common.bash
17 maint/travis-ci_scripts/common.bash
View
@@ -61,9 +61,22 @@ parallel_installdeps_notest() {
# The reason we do things so "non-interactively" is that xargs -P will have the
# latest cpanm instance overwrite the buildlog. There seems to be no way to
# specify a custom buildlog, hence we just collect the verbose output
- # and display it in case of failure
+ # and display it in case of "worker" failure
+ #
+ # Explanation of inline args:
+ #
+ # [09:38] <T> you need a $0
+ # [09:38] <G> hence the _
+ # [09:38] <G> bash -c '...' _
+ # [09:39] <T> I like -- because it's the magic that gnu getopts uses for somethign else
+ # [09:39] <G> or --, yes
+ # [09:39] <T> ribasushi: you could put "giant space monkey penises" instead of "--" and it would work just as well
+ #
run_or_err "Installing (without testing) $MODLIST" \
- "echo $MODLIST | xargs -n 1 -P $NUMTHREADS cpanm --notest --no-man-pages"
+ "echo $MODLIST | xargs -n 1 -P $NUMTHREADS bash -c \\
+ 'OUT=\$(cpanm --notest --no-man-pages \"\$@\" 2>&1 ) || (LASTEXIT=\$?; echo \"\$OUT\"; exit \$LASTEXIT)' \\
+ 'giant space monkey penises'
+ "
}
Please sign in to comment.
Something went wrong with that request. Please try again.