add test dependencies to Makefile.PL
This commit is contained in:
@@ -3,7 +3,9 @@ abstract: 'An open source web-based network management tool.'
|
||||
author:
|
||||
- 'Oliver Gorwits <oliver@cpan.org>'
|
||||
build_requires:
|
||||
Env::Path: 0
|
||||
ExtUtils::MakeMaker: 6.59
|
||||
Test::More: 0.88
|
||||
configure_requires:
|
||||
ExtUtils::MakeMaker: 6.59
|
||||
distribution_type: module
|
||||
@@ -67,6 +69,7 @@ requires:
|
||||
Sereal: 0
|
||||
Socket6: 0.23
|
||||
Starman: 0.4008
|
||||
Sys::Proctitle: 0
|
||||
Template: 2.24
|
||||
Template::Plugin::CSV: 0.04
|
||||
Template::Plugin::Number::Format: 1.02
|
||||
|
||||
@@ -3,6 +3,9 @@ use inc::Module::Install;
|
||||
name 'App-Netdisco';
|
||||
license 'bsd';
|
||||
all_from 'lib/App/Netdisco.pm';
|
||||
|
||||
test_requires 'Test::More' => 0.88;
|
||||
test_requires 'Env::Path' => 0;
|
||||
|
||||
requires 'Algorithm::Cron' => 0.07;
|
||||
requires 'AnyEvent' => 7.05;
|
||||
|
||||
@@ -9,7 +9,7 @@ use FindBin qw( $Bin );
|
||||
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
|
||||
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
||||
|
||||
if ( !-x $phantomjs ) {
|
||||
if ( ! defined $phantomjs or !-x $phantomjs ) {
|
||||
plan skip_all =>
|
||||
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user