From: Jesse Luehrs Date: Mon, 3 Jan 2011 19:09:47 +0000 (-0600) Subject: require running the smoker before non-trial releases X-Git-Tag: 1.9902~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d9290b4f763b597275391dff20ddd946c04333ee;p=gitmo%2FMoose.git require running the smoker before non-trial releases --- diff --git a/dist.ini b/dist.ini index 8292ea1..c952a7e 100644 --- a/dist.ini +++ b/dist.ini @@ -19,7 +19,7 @@ version = 1.9901 [=inc::MakeMaker] [Manifest] -[TestRelease] +[=inc::TestRelease] [ConfirmRelease] [UploadToCPAN] diff --git a/inc/TestRelease.pm b/inc/TestRelease.pm new file mode 100644 index 0000000..d557757 --- /dev/null +++ b/inc/TestRelease.pm @@ -0,0 +1,18 @@ +package inc::TestRelease; + +use Moose; + +extends 'Dist::Zilla::Plugin::TestRelease'; + +around before_release => sub { + my $orig = shift; + my $self = shift; + + local $ENV{MOOSE_TEST_MD} = $self->zilla->is_trial + ? $ENV{MOOSE_TEST_MD} + : 1; + + $self->$orig(@_); +}; + +1;