use travis-perl helpers fix CPAN.pm issues
[catagits/Catalyst-Runtime.git] / .travis.yml
CommitLineData
209210df 1language: perl
4d7949d9 2sudo: false
209210df 3perl:
e802107a 4 - "5.26"
2419db2c 5 - "5.24"
49b1808f 6 - "5.22"
94c34b14 7 - "5.20"
44cf0958 8 - "5.18"
209210df 9 - "5.16"
10 - "5.14"
11 - "5.12"
12 - "5.10"
adde9a4e 13 - "5.8"
209210df 14
c469bbef 15before_install:
16 - eval $(curl https://travis-perl.github.io/init)
17 - $HELPERS_ROOT/bin/cpan-config
209210df 18install:
cea573d8 19 - cpanm --notest --metacpan --skip-satisfied --with-develop --installdeps .
20 - perl Makefile.PL
209210df 21
8098d754 22 # installing Catalyst::Devel above causes the latest release of
23 # Catalyst::Runtime to be installed, but the version we're testing might
24 # have additional deps that aren't yet satisfied. so we should try
25 # installing deps again now that the MYMETA has been created (and we'll also
26 # need to delete the now-unneeded cpanfile so that cpanm doesn't choose it
27 # in preference to the MYMETA)
28 - rm -f cpanfile
29 - cpanm --notest --metacpan --skip-satisfied --installdeps .
30
6168fe6b 31 # enable various test options, including parallel testing
32 - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
33
209210df 34 # we want these for our tests, but not for any others
35 - export AUTHOR_TESTING=1
36 - export RELEASE_TESTING=1
37
38 - make manifest
39
40script:
41 - make disttest
2aa2f26a 42
43 # Test reverse deps (high-profile modules, taken from from Task::Catalyst):
44 # (note: currently skipping DBIC deps for speed)
45 - make install
46
47 # pure author deps (of reverse deps):
48 - cpanm --notest --metacpan --skip-satisfied YAML::Syck
49
50 # both author deps & reverse deps:
51 - cpanm --metacpan --skip-satisfied Catalyst::View::TT
52 - cpanm --metacpan --skip-satisfied Catalyst::Plugin::Authentication
53
54 # pure reverse deps (call with --test-only):
dc63d4cf 55 - cpanm --test-only --metacpan -v Catalyst::Devel
56 - cpanm --test-only --metacpan -v Catalyst::Action::REST
57 - cpanm --test-only --metacpan -v Catalyst::Component::InstancePerContext
58 - cpanm --test-only --metacpan -v Catalyst::Plugin::Session
59 - cpanm --test-only --metacpan -v Catalyst::Plugin::Session::State::Cookie
60 - cpanm --test-only --metacpan -v Catalyst::Plugin::Static::Simple
61 - cpanm --test-only --metacpan -v Catalyst::Plugin::ConfigLoader
62 - cpanm --test-only --metacpan -v Catalyst::Plugin::ConfigLoader
b87b8e45 63 #- cpanm --test-only --verbose --metacpan Catalyst::Authentication::Credential::HTTP
2aa2f26a 64
65 # Still need to figure out why these fail in travis:
66 #- cpanm --test-only --metacpan -v Catalyst::View::Email
67 #- cpanm --test-only --metacpan -v Catalyst::Plugin::Session::Store::File
68 #- cpanm --test-only --metacpan -v Catalyst::Plugin::I18N