Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only display output of failed workers in parallel_installdeps_notest

  • Loading branch information...
commit 10e248bf59ce89642a6f366fc7b83e90a56797ac 1 parent 91d48c5
Peter Rabbitson ribasushi authored

Showing 1 changed file with 15 additions and 2 deletions. Show diff stats Hide diff stats

  1. +15 2 maint/travis-ci_scripts/common.bash
17 maint/travis-ci_scripts/common.bash
@@ -61,9 +61,22 @@ parallel_installdeps_notest() {
61 61 # The reason we do things so "non-interactively" is that xargs -P will have the
62 62 # latest cpanm instance overwrite the buildlog. There seems to be no way to
63 63 # specify a custom buildlog, hence we just collect the verbose output
64   - # and display it in case of failure
  64 + # and display it in case of "worker" failure
  65 + #
  66 + # Explanation of inline args:
  67 + #
  68 + # [09:38] <T> you need a $0
  69 + # [09:38] <G> hence the _
  70 + # [09:38] <G> bash -c '...' _
  71 + # [09:39] <T> I like -- because it's the magic that gnu getopts uses for somethign else
  72 + # [09:39] <G> or --, yes
  73 + # [09:39] <T> ribasushi: you could put "giant space monkey penises" instead of "--" and it would work just as well
  74 + #
65 75 run_or_err "Installing (without testing) $MODLIST" \
66   - "echo $MODLIST | xargs -n 1 -P $NUMTHREADS cpanm --notest --no-man-pages"
  76 + "echo $MODLIST | xargs -n 1 -P $NUMTHREADS bash -c \\
  77 + 'OUT=\$(cpanm --notest --no-man-pages \"\$@\" 2>&1 ) || (LASTEXIT=\$?; echo \"\$OUT\"; exit \$LASTEXIT)' \\
  78 + 'giant space monkey penises'
  79 + "
67 80 }
68 81
69 82

0 comments on commit 10e248b

Please sign in to comment.
Something went wrong with that request. Please try again.