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:
|
author:
|
||||||
- 'Oliver Gorwits <oliver@cpan.org>'
|
- 'Oliver Gorwits <oliver@cpan.org>'
|
||||||
build_requires:
|
build_requires:
|
||||||
|
Env::Path: 0
|
||||||
ExtUtils::MakeMaker: 6.59
|
ExtUtils::MakeMaker: 6.59
|
||||||
|
Test::More: 0.88
|
||||||
configure_requires:
|
configure_requires:
|
||||||
ExtUtils::MakeMaker: 6.59
|
ExtUtils::MakeMaker: 6.59
|
||||||
distribution_type: module
|
distribution_type: module
|
||||||
@@ -67,6 +69,7 @@ requires:
|
|||||||
Sereal: 0
|
Sereal: 0
|
||||||
Socket6: 0.23
|
Socket6: 0.23
|
||||||
Starman: 0.4008
|
Starman: 0.4008
|
||||||
|
Sys::Proctitle: 0
|
||||||
Template: 2.24
|
Template: 2.24
|
||||||
Template::Plugin::CSV: 0.04
|
Template::Plugin::CSV: 0.04
|
||||||
Template::Plugin::Number::Format: 1.02
|
Template::Plugin::Number::Format: 1.02
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ name 'App-Netdisco';
|
|||||||
license 'bsd';
|
license 'bsd';
|
||||||
all_from 'lib/App/Netdisco.pm';
|
all_from 'lib/App/Netdisco.pm';
|
||||||
|
|
||||||
|
test_requires 'Test::More' => 0.88;
|
||||||
|
test_requires 'Env::Path' => 0;
|
||||||
|
|
||||||
requires 'Algorithm::Cron' => 0.07;
|
requires 'Algorithm::Cron' => 0.07;
|
||||||
requires 'AnyEvent' => 7.05;
|
requires 'AnyEvent' => 7.05;
|
||||||
requires 'AnyEvent::DNS::EtcHosts' => 0;
|
requires 'AnyEvent::DNS::EtcHosts' => 0;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use FindBin qw( $Bin );
|
|||||||
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
|
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
|
||||||
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
||||||
|
|
||||||
if ( !-x $phantomjs ) {
|
if ( ! defined $phantomjs or !-x $phantomjs ) {
|
||||||
plan skip_all =>
|
plan skip_all =>
|
||||||
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user