X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=Makefile.PL;fp=Makefile.PL;h=ee4ed6404fbb2e392862a88caeb10b0660514255;hp=6b45f5e1266af61d1de92b9a34a951effde6afdd;hb=972340a601c267a54cbe58d0253d7da364b2ee7d;hpb=18661ab6c86bdc157cafd94b5db364d2e9b46693 diff --git a/Makefile.PL b/Makefile.PL index 6b45f5e..ee4ed64 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,4 @@ +# COMPAT_TEST=1 genrates Moose compatible tests # for developpers: BEGIN{ if(grep{ $_ eq '--author' } @ARGV){ @@ -81,7 +82,8 @@ if ($Module::Install::AUTHOR) { require 'lib/Mouse/Spec.pm'; # for the version my $require_version = Mouse::Spec->MooseVersion; - if (eval { require Moose; Moose->VERSION($require_version) }) { + if ($ENV{COMPAT_TEST} + && eval { require Moose; Moose->VERSION($require_version) }) { print "You have Moose ", Moose->VERSION, ".\n"; do 'tool/create-moose-compatibility-tests.pl'; # repeat testing