(travis) randomize the dependency install order to catch even more fish
Peter Rabbitson [Fri, 2 Jan 2015 15:56:26 +0000 (16:56 +0100)]
maint/travis-ci_scripts/30_before_script.bash
maint/travis-ci_scripts/common.bash

index b13fda7..3b9befe 100755 (executable)
@@ -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
index 676b217..2fa43e0 100755 (executable)
@@ -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