Module::Install::NoAutomatedTesting - A Module::Install extension to avoid CPAN Testers


Module-Install-NoAutomatedTesting documentation Contained in the Module-Install-NoAutomatedTesting distribution.

Index


Code Index:

NAME

Top

Module::Install::NoAutomatedTesting - A Module::Install extension to avoid CPAN Testers

SYNOPSIS

Top

  # In Makefile.PL

  use inc::Module::Install;
  no_auto_test;

The Makefile.PL will exit if it detects that it is being run on a CPAN Tester's smoker.

DESCRIPTION

Top

CPAN Testers are great and do a worthy and thankless job, testing all the distributions uploaded to CPAN. But sometimes we don't want a distribution to be tested by these gallant individuals.

Module::Install::NoAutomatedTesting is a Module::Install extension that will exit from the Makefile.PL when it detects that it is being run by a CPAN Tester.

COMMANDS

Top

This plugin adds the following Module::Install command:

no_auto_test

Does nothing on the author-side. On the user side it detects whether or not automated testing is in effect and exits accordingly.

AUTHOR

Top

Chris BinGOs Williams

LICENSE

Top

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.

SEE ALSO

Top

Module::Install

http://wiki.cpantesters.org/


Module-Install-NoAutomatedTesting documentation Contained in the Module-Install-NoAutomatedTesting distribution.

package Module::Install::NoAutomatedTesting;

use strict;
use warnings;
use base qw(Module::Install::Base);
use vars qw($VERSION);

$VERSION = '0.06';

sub no_auto_test {
  return if $Module::Install::AUTHOR;
  exit 0 if $ENV{AUTOMATED_TESTING};
}

'NO SMOKING';

__END__