overcome "weaken is only available with the XS version of Scalar::Util" on 5.6
Karen Etheridge [Mon, 7 Oct 2019 16:09:35 +0000 (09:09 -0700)]
.travis.yml
dist.ini

index e31d93c..4a70836 100644 (file)
@@ -50,6 +50,8 @@ env:
     - AUTOMATED_TESTING=1
     - RELEASE_TESTING=0
 before_install:
+  - perl -MScalar::Util -e'print qq{Scalar::Util is at version $Scalar::Util::VERSION\n}'
+  - perl -M5.008 -e1 2>/dev/null || cpan-install Scalar::Util@1.52
   - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
   - source ~/travis-perl-helpers/init
   - build-perl
index dd4e112..41bec35 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -19,7 +19,8 @@ GithubMeta.remote = github
 installer = MakeMaker   ; stay 5.6-friendly
 authority = cpan:FLORA
 Test::MinimumVersion.max_target_perl = 5.006
-Test::ReportPrereqs.include = DynaLoader
+Test::ReportPrereqs.include[0] = DynaLoader
+Test::ReportPrereqs.include[1] = Scalar::Util
 MinimumPerl.test_finder = all_files_but_special_features
 
 ; authordep Pod::Weaver::Section::AllowOverride