From: Peter Rabbitson Date: Sun, 19 Jan 2014 18:24:49 +0000 (+0100) Subject: Temporary CI workaround for RT#92226 X-Git-Tag: v0.08260~43 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=647da28e;p=dbsrgits%2FDBIx-Class.git Temporary CI workaround for RT#92226 --- diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index 59ce9e8..47a1927 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -59,12 +59,14 @@ if [[ "$CLEANTEST" = "true" ]]; then # latest T::B here, so that it will not show up as a dependency, and # hence it will not get installed a second time as an unsatisfied dep # under cpanm --dev - installdeps 'Test::Builder~<1.005' + # + # L::U is a workaround for RT#92226 (argh) + installdeps 'Test::Builder~<1.005' 'List::Util~!=1.36' elif ! CPAN_is_sane ; then # no configure_requires - we will need the usual suspects anyway # without pre-installing these in one pass things like extract_prereqs won't work - installdeps ExtUtils::MakeMaker ExtUtils::CBuilder Module::Build + installdeps ExtUtils::MakeMaker ExtUtils::CBuilder Module::Build P/PE/PEVANS/Scalar-List-Utils-1.35.tar.gz fi @@ -89,7 +91,7 @@ else parallel_installdeps_notest File::Path parallel_installdeps_notest Carp parallel_installdeps_notest Module::Build - parallel_installdeps_notest File::Spec Data::Dumper Module::Runtime + parallel_installdeps_notest File::Spec Data::Dumper Module::Runtime 'List::Util~<1.36' parallel_installdeps_notest Test::Exception Encode::Locale Test::Fatal parallel_installdeps_notest Test::Warn B::Hooks::EndOfScope Test::Differences HTTP::Status parallel_installdeps_notest Test::Pod::Coverage Test::EOL Devel::GlobalDestruction Sub::Name MRO::Compat Class::XSAccessor URI::Escape HTML::Entities @@ -195,7 +197,7 @@ while (@chunks) { else # listalldeps is deliberate - will upgrade everything it can find - parallel_installdeps_notest $(make listalldeps) + parallel_installdeps_notest $(make listalldeps | grep -v List::Util) fi diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index c660905..b64d414 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -167,11 +167,15 @@ _dep_inst_with_test() { for m in "$@"; do if ! perl -e ' -eval ( q{require } . ( +my $mod = ( $ARGV[0] =~ m{ \/ .*? ([^\/]+) $ }x ? do { my @p = split (/\-/, $1); pop @p; join "::", @p } : $ARGV[0] -) ) or ( print $@ and exit 1) +); + +$mod = q{List::Util} if $mod eq q{Scalar::List::Utils}; + +eval qq{require($mod)} or ( print $@ and exit 1) ' "$m" 2> /dev/null ; then echo -e "$m installation seems to have failed"