From: Dagfinn Ilmari Mannsåker Date: Wed, 14 Mar 2018 14:38:51 +0000 (+0000) Subject: Use Travis Perl helpers X-Git-Tag: v0.36~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=commitdiff_plain;h=0f93c510af9afdd95a15bfb812d86732b2f78fe9 Use Travis Perl helpers - Explicitly configure CPAN Module::AutoInstall gets stuck prompting for mirrors on 5.8 otherwise - Manually install author deps The helpers don't install them in the perl under which the module is being tested, but they do run the author tests. --- diff --git a/.travis.yml b/.travis.yml index b59fdab..5502bc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,27 +10,9 @@ perl: - "5.12" - "5.10" - "5.8" - +sudo: false +before_install: + - eval $(curl https://travis-perl.github.io/init) --auto install: - # Based on Catalyst travis cfg: - - # M::I deps - - cpanm --notest --metacpan --skip-satisfied Module::Install Module::Install::AuthorRequires Module::Install::CheckConflicts Module::Install::AuthorTests Module::Install::Authority - - # author deps -- wish there was a better way - - cpanm --notest --metacpan --skip-satisfied CatalystX::LeakChecker Catalyst::Devel Catalyst::Engine::PSGI Starman MooseX::Daemonize Test::WWW::Mechanize::Catalyst Catalyst::Plugin::Params::Nested - - cpanm --notest --metacpan --skip-satisfied Test::Without::Module Test::NoTabs Test::Pod Test::Pod::Coverage Test::Spelling Pod::Coverage::TrustPod - - cpanm --notest --metacpan --skip-satisfied --installdeps . - - echo y | perl Makefile.PL - - # enable various test options, including parallel testing - - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 - - # we want these for our tests, but not for any others - - export AUTHOR_TESTING=1 - - export RELEASE_TESTING=1 - - - make manifest - -script: - - make disttest + - $HELPERS_ROOT/bin/cpan-config + - cpan-install --deps Test::NoTabs Test::Pod Test::Pod::Coverage