summaryrefslogtreecommitdiff
path: root/inc/TestRelease.pm
blob: 9d30a76147b7863171806cf5a8ad07be4b658844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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} = 1 if not $self->zilla->is_trial;
    local $ENV{AUTHOR_TESTING} = 1 if not $self->zilla->is_trial;

    $self->$orig(@_);
};

1;