On Sat, Apr 17, 2010 at 12:55 AM, Andreas J. Koenig <
[email protected]> wrote:

> >>>>> On Tue, 13 Apr 2010 11:45:25 -0700, Bill Moseley <[email protected]>
> said:
>
>  > The docs recommend against using PREREQ_FATAL (thus allowing the
> Makefile to
>  > be created).  I'm wondering how to determine when a required version is
>  > missing.
>
> Use CPAN.pm to install it, it knows how to read declared dependencies,
> no matter if MakeMaker or Module Build is involved.
>

Do you mean use something like "cpan -t ."?

Let me ask another way.  I think what I really need is a local cpan testers
environment.

I have a collection of in-house custom distributions.   Some use
ExtUtils::MakeMaker and some use Module::Install.   I want some event (e.g.
cron or an svn check in) to start a script that will report if there's any
missing dependencies when Makefile.PL is run, and if Makefile.PL has no
errors, report if any tests fail.


I currently have a shell script that looks for subversion changes, exports
the code and runs Makefile.PL and the tests.  Any problems generate an
email.  The problem with that simple approach is that I have to
set PREREQ_FATAL in order to have Makefile.PL exit with an error.  Not that
for this automated testing I do NOT want to run make install -- it's just a
sanity check on the new code.

I assume there is a much more elegant and established way to do this for
locally managed (private) distributions.

Thanks,


-- 
Bill Moseley
[email protected]

Reply via email to