From: Fuji, Goro Date: Fri, 24 Sep 2010 05:45:49 +0000 (+0900) Subject: Make compatibility tests optional. Its is almost useless now. X-Git-Tag: 0.71~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=972340a601c267a54cbe58d0253d7da364b2ee7d;p=gitmo%2FMouse.git Make compatibility tests optional. Its is almost useless now. --- 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