Use Travis Perl helpers
[catagits/Catalyst-Plugin-Static-Simple.git] / .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