CPAN Testers and giant library

Dear lazyweb,

I am about to upload a new Alien:: distribution that downloads, builds, and installs a very, very large library. The installation of this Alien:: distribution occupies about 240MB on my laptop and compile times are huge even on my fast computer.

Is there a way to flag a distribution as unsuitable for CPAN testers? I'd rather not abuse the volunteer infrastructure by having them compile a library over night.

2 Comments

At the top of your Makefile.PL or Build.PL, add the line:

exit 0 if $ENV{AUTOMATED_TESTING};

As long as the exit code is zero and no Makefile or Build is created, the CPAN Testers will just ignore your distribution and move on.

This and other questions are answered in the Notes For CPAN Authors on the CPAN Testers Wiki.

Leave a comment

About Steffen Mueller

user-pic Physicist turned software developer. Working on Infrastructure Development at Booking.com. Apparently the only person who thinks the perl internals aren't nearly as bad as people make them. See also: the Booking.com tech blog, CPAN.