Use Travis Perl helpers
Dagfinn Ilmari Mannsåker [Wed, 14 Mar 2018 14:38:51 +0000 (14:38 +0000)]
- 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.

.travis.yml

index b59fdab..5502bc1 100644 (file)
@@ -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