From: Peter Rabbitson <ribasushi@cpan.org>
Date: Fri, 2 Jan 2015 15:56:26 +0000 (+0100)
Subject: (travis) randomize the dependency install order to catch even more fish
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe92f179bcbdd9efc0da799b8ca88b7b4f537230;p=dbsrgits%2FDBIx-Class-Historic.git

(travis) randomize the dependency install order to catch even more fish
---

diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash
index b13fda7..3b9befe 100755
--- a/maint/travis-ci_scripts/30_before_script.bash
+++ b/maint/travis-ci_scripts/30_before_script.bash
@@ -115,11 +115,11 @@ if [[ "$CLEANTEST" = "true" ]]; then
     HARD_DEPS="$(echo $(make listalldeps))"
 
     # FIXME - temporary workaround for https://github.com/rjbs/Test-Deep/issues/22
-    HARD_DEPS="$(sed 's/Test::Deep//' <<< $HARD_DEPS)"
+    HARD_DEPS="$(sed 's/Test::Deep//' <<< $HARD_DEPS | sort -R)"
 
   else
 
-    HARD_DEPS="$(echo $(make listdeps))"
+    HARD_DEPS="$(echo $(make listdeps | sort -R))"
 
 ##### TEMPORARY WORKAROUNDS needed in case we will be using a fucked CPAN.pm
     if ! CPAN_is_sane ; then
diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash
index 676b217..2fa43e0 100755
--- a/maint/travis-ci_scripts/common.bash
+++ b/maint/travis-ci_scripts/common.bash
@@ -132,7 +132,7 @@ parallel_installdeps_notest() {
   if [[ -z "$@" ]] ; then return; fi
 
   # one module spec per line
-  MODLIST="$(printf '%s\n' "$@")"
+  MODLIST="$(printf '%s\n' "$@" | sort -R)"
 
   # We want to trap the output of each process and serially append them to
   # each other as opposed to just dumping a jumbled up mass-log that would