Commit | Line | Data |
---|---|---|
d9290b4f | 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; | |
19b51e06 | 14 | local $ENV{AUTHOR_TESTING} = $self->zilla->is_trial |
15 | ? $ENV{AUTHOR_TESTING} | |
16 | : 1; | |
d9290b4f | 17 | |
18 | $self->$orig(@_); | |
19 | }; | |
20 | ||
21 | 1; |