Really work around https://github.com/travis-ci/travis-ci/issues/1477
Peter Rabbitson [Mon, 14 Oct 2013 08:07:28 +0000 (10:07 +0200)]
Just upgrade cpanm by hand with --dev

maint/travis-ci_scripts/20_install.bash
maint/travis-ci_scripts/30_before_script.bash

index c8bd62a..4118dfc 100755 (executable)
@@ -24,8 +24,10 @@ if [[ "$DEVREL_DEPS" == "true" ]] ; then
 
   PERL_CPANM_OPT="$PERL_CPANM_OPT --dev"
 
-  # FIXME work around https://github.com/miyagawa/cpanminus/issues/308
-  TEST_BUILDER_BETA_CPAN_TARBALL="M/MS/MSCHWERN/Test-Simple-1.005000_006.tar.gz"
+  # FIXME inline-upgrade cpanm, work around https://github.com/travis-ci/travis-ci/issues/1477
+  cpanm_loc="$(which cpanm)"
+  run_or_err "Upgrading cpanm ($cpanm_loc) to latest stable" \
+    "wget -q -O $cpanm_loc cpanmin.us && chmod a+x $cpanm_loc"
 fi
 
 # Fixup CPANM_OPT to behave more like a traditional cpan client
index 46eef91..f4580af 100755 (executable)
@@ -158,12 +158,10 @@ while (@chunks) {
   fi
 
 else
-  if [[ -n "$TEST_BUILDER_BETA_CPAN_TARBALL" ]] ; then
-    parallel_installdeps_notest $TEST_BUILDER_BETA_CPAN_TARBALL
-  fi
 
   # listalldeps is deliberate - will upgrade everything it can find
   parallel_installdeps_notest $(make listalldeps)
+
 fi
 
 echo_err "$(tstamp) Dependency installation finished"