Temporary work around yet another cpanm issue
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 30_before_script.bash
index 3428b87..63ac1c0 100755 (executable)
@@ -19,6 +19,9 @@ elif [[ "$CLEANTEST" != "true" ]] && ( [[ -z "$BREWVER" ]] || [[ "$BREWVER" = "b
   # can't do this with CLEANTEST=true yet because a lot of our deps fail
   # tests left and right under T::B 1.5
   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"
 fi
 
 
@@ -87,10 +90,9 @@ else
   parallel_installdeps_notest Moose Module::Install JSON SQL::Translator
 
   if [[ -n "DBICTEST_FIREBIRD_DSN" ]] ; then
-    # the official version is full of 5.10-isms, but works perfectly fine on 5.8
-    # pull in our patched copy
+    # pull in patched unreleased copy with restored 5.8 compat
     run_or_err "Fetching patched DBD::Firebird" \
-      "git clone https://github.com/dbsrgits/perl-dbd-firebird-5.8.git ~/dbd-firebird"
+      "git clone https://github.com/mariuz/perl-dbd-firebird ~/dbd-firebird"
 
     # the official version is very much outdated and does not compile on 5.14+
     # use this rather updated source tree (needs to go to PAUSE):
@@ -98,6 +100,11 @@ else
     run_or_err "Fetching patched DBD::InterBase" \
       "git clone https://github.com/dbsrgits/perl-dbd-interbase ~/dbd-interbase"
 
+    # Now part of DBD::Firebird configure_requires, which are not present
+    # in the cloned repo (no META.*)
+    # FIXME - need to get this off metacpan or something instead
+    parallel_installdeps_notest File::Which
+
     parallel_installdeps_notest ~/dbd-interbase/ ~/dbd-firebird/
   fi
 
@@ -112,12 +119,14 @@ if [[ "$CLEANTEST" = "true" ]]; then
   # we may need to prepend some stuff to that list
   HARD_DEPS="$(echo $(make listdeps))"
 
+
+##### TEMPORARY WORKAROUNDS
+
   # this is a fucked CPAN - won't understand configure_requires of
   # various pieces we may run into
+  # FIXME - need to get these off metacpan or something instead
   CPAN_is_sane || HARD_DEPS="ExtUtils::Depends B::Hooks::OP::Check $HARD_DEPS"
 
-##### TEMPORARY WORKAROUNDS
-
   # The unicode-in-yaml bug on older cpan clients
   # FIXME there got to be a saner way to fix this...
   perl -M5.008008 -e 1 &> /dev/null || \