From 3066bdc4adb359b9a14f762b1708de5e95bc5635 Mon Sep 17 00:00:00 2001 From: mephinet Date: Sun, 9 Jun 2013 22:25:00 +0200 Subject: [PATCH 1/2] set TEST_AUTHOR in env for Test::Perl::Critic --- lib/ShipIt/ProjectType/Perl/MakeMaker.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ShipIt/ProjectType/Perl/MakeMaker.pm b/lib/ShipIt/ProjectType/Perl/MakeMaker.pm index 381158a..1410c00 100644 --- a/lib/ShipIt/ProjectType/Perl/MakeMaker.pm +++ b/lib/ShipIt/ProjectType/Perl/MakeMaker.pm @@ -32,7 +32,10 @@ sub disttest { my $self = shift; $self->prepare_build; - $self->run_build('disttest') or die "Disttest failed"; + { + local $ENV{TEST_AUTHOR} = 1; + $self->run_build('disttest') or die "Disttest failed"; + } $self->run_build('distclean') or die "Distclean failed"; my @missing = manicheck; From 97f29e552cfd003379761e1e2892c016b1b96165 Mon Sep 17 00:00:00 2001 From: Philipp Gortan Date: Mon, 10 Jun 2013 09:47:19 +0200 Subject: [PATCH 2/2] changed env name according to https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/oslo-consensus.md --- lib/ShipIt/ProjectType/Perl/MakeMaker.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ShipIt/ProjectType/Perl/MakeMaker.pm b/lib/ShipIt/ProjectType/Perl/MakeMaker.pm index 1410c00..01f6692 100644 --- a/lib/ShipIt/ProjectType/Perl/MakeMaker.pm +++ b/lib/ShipIt/ProjectType/Perl/MakeMaker.pm @@ -33,7 +33,7 @@ sub disttest { $self->prepare_build; { - local $ENV{TEST_AUTHOR} = 1; + local $ENV{RELEASE_TESTING} = 1; $self->run_build('disttest') or die "Disttest failed"; } $self->run_build('distclean') or die "Distclean failed";