Unverified Commit 44413372 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #664 from ikedas/test-compile-2 by ikedas

Support Test::Compile 2.0.0
parents 9c9c126d 66d36ce6
......@@ -28,7 +28,6 @@ before_install:
install:
- cpan-install --coverage
- cpanm --notest --quiet Test::Compile Test::Harness Test::More Test::Pod
- cpanm --notest --quiet Archive::Zip CGI Class::Singleton DBI DateTime::Format::Mail DateTime::TimeZone Digest::MD5 Encode File::Copy::Recursive File::NFSLock File::Path HTML::FormatText HTML::StripScripts::Parser HTML::TreeBuilder IO::File IO::Scalar LWP::UserAgent List::Util::XS Locale::Messages MHonArc::UTF8 MIME::Base64 MIME::Charset MIME::EncWords MIME::Lite::HTML MIME::Tools Mail::Address Net::CIDR Sys::Syslog Template Term::ProgressBar Text::LineFold Time::HiRes URI::Escape XML::LibXML
- cpanm --notest --quiet CGI::Fast FCGI
- cpanm --notest --quiet Unicode::CaseFold
......
......@@ -286,6 +286,13 @@ feature 'Unicode::Normalize', 'Normalizes file names represented by Unicode.' =>
requires 'Unicode::Normalize', '>= 0.23';
};
on 'test' => sub {
requires 'Test::Compile';
requires 'Test::Harness';
requires 'Test::More';
requires 'Test::Pod';
};
on 'develop' => sub {
requires 'Test::Fixme';
requires 'Test::PerlTidy', '== 20130104';
......
......@@ -8,17 +8,12 @@ use warnings;
use English qw(-no_match_vars);
use Test::More;
eval {
require Test::Compile;
Test::Compile->import();
};
if ($EVAL_ERROR) {
BEGIN { eval 'use Test::Compile qw(all_pl_files_ok)'; }
unless ($Test::Compile::VERSION) {
my $msg = 'Test::Compile required';
plan(skip_all => $msg);
}
#$ENV{PERL5LIB} = $ENV{PERL5LIB} ? "$ENV{PERL5LIB}:src/lib" : "src/lib";
all_pl_files_ok(
##<po/*.pl>,
<src/sbin/*.pl>,
......
......@@ -8,11 +8,8 @@ use warnings;
use English qw(-no_match_vars);
use Test::More;
eval {
require Test::Compile;
Test::Compile->import();
};
if ($EVAL_ERROR) {
BEGIN { eval 'use Test::Compile qw(all_pm_files all_pm_files_ok)'; }
unless ($Test::Compile::VERSION) {
my $msg = 'Test::Compile required';
plan(skip_all => $msg);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment