stop using excludes within moose, since it's no longer necessary
[gitmo/Moose.git] / inc / TestRelease.pm
1 package inc::TestRelease;
2
3 use Moose;
4
5 extends 'Dist::Zilla::Plugin::TestRelease';
6
7 around before_release => sub {
8     my $orig = shift;
9     my $self = shift;
10
11     local $ENV{MOOSE_TEST_MD} = $self->zilla->is_trial
12         ? $ENV{MOOSE_TEST_MD}
13         : 1;
14     local $ENV{AUTHOR_TESTING} = $self->zilla->is_trial
15         ? $ENV{AUTHOR_TESTING}
16         : 1;
17
18     $self->$orig(@_);
19 };
20
21 1;