From 7262a7d2e3782d375ec054ace234c7ad730e67bb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 16 Feb 2011 11:07:45 -0600 Subject: allow testing release with a env var too --- lib/Dist/Zilla/PluginBundle/DOY.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Dist/Zilla/PluginBundle/DOY.pm b/lib/Dist/Zilla/PluginBundle/DOY.pm index b3afd03..922225a 100644 --- a/lib/Dist/Zilla/PluginBundle/DOY.pm +++ b/lib/Dist/Zilla/PluginBundle/DOY.pm @@ -73,7 +73,11 @@ has is_test_dist => ( is => 'ro', isa => 'Bool', lazy => 1, - default => sub { shift->dist =~ /^Foo-/ ? 1 : 0 }, + default => sub { + my $self = shift; + return 1 if $ENV{DZIL_FAKE_RELEASE}; + return $self->dist =~ /^Foo-/ ? 1 : 0 + }, ); has git_remote => ( -- cgit v1.2.3-54-g00ecf