From: Peter Rabbitson Date: Thu, 19 May 2016 08:25:36 +0000 (+0200) Subject: (travis) Test::Strict needs Devel::Cover which fails on blead X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07a243ad8f4273317a028eb7a55a8682a713eba3;p=dbsrgits%2FDBIx-Class.git (travis) Test::Strict needs Devel::Cover which fails on blead To work around https://github.com/pjcj/Devel--Cover/issues/161 provide a fake Devel::Cover satisfying https://github.com/Manwar/Test-Strict/issues/17 --- diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index 958f2d8..bc0e9fb 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -171,6 +171,16 @@ else run_or_err "Configure on current branch with --with-optdeps" "perl Makefile.PL --with-optdeps" + # FIXME - evil evil work around for https://github.com/Manwar/Test-Strict/issues/17 + if perl -M5.025 -e1 &>/dev/null; then + mkdir -p "$( perl -MConfig -e 'print $Config{sitelib}' )/Devel" + cat < "$( perl -MConfig -e 'print $Config{sitelib}' )/Devel/Cover.pm" +package Devel::Cover; +our \$VERSION = 0.43; +1; +MyDevelCover + fi + # if we are smoking devrels - make sure we upgrade everything we know about if [[ "$DEVREL_DEPS" == "true" ]] ; then parallel_installdeps_notest "$(make listalldeps | sort -R)"