Merge branch 'pr/154' into release-candidates/rc-5.90116
[catagits/Catalyst-Runtime.git] / .travis.yml
1 language: perl
2 sudo: false
3 perl:
4    - "5.24"
5    - "5.22"
6    - "5.20"
7    - "5.18"
8    - "5.16"
9    - "5.14"
10    - "5.12"
11    - "5.10"
12    - "5.8"
13
14 install:
15    # for testing
16    - cpanm --notest --metacpan --skip-satisfied YAML
17
18    # M::I deps
19    - cpanm --notest --metacpan --skip-satisfied Module::Install Module::Install::AuthorRequires Module::Install::CheckConflicts Module::Install::AuthorTests Module::Install::Authority
20
21    # author deps -- wish there was a better way
22    - cpanm --notest --metacpan --skip-satisfied CatalystX::LeakChecker Catalyst::Devel Catalyst::Engine::PSGI Starman MooseX::Daemonize Test::WWW::Mechanize::Catalyst Catalyst::Plugin::Params::Nested
23    - cpanm --notest --metacpan --skip-satisfied Test::Without::Module Test::NoTabs Test::Pod Test::Pod::Coverage Test::Spelling Pod::Coverage::TrustPod Type::Tiny
24    - cpanm --notest --metacpan --skip-satisfied --installdeps .
25    - echo y | perl Makefile.PL
26
27    # installing Catalyst::Devel above causes the latest release of
28    # Catalyst::Runtime to be installed, but the version we're testing might
29    # have additional deps that aren't yet satisfied. so we should try
30    # installing deps again now that the MYMETA has been created (and we'll also
31    # need to delete the now-unneeded cpanfile so that cpanm doesn't choose it
32    # in preference to the MYMETA)
33    - rm -f cpanfile
34    - cpanm --notest --metacpan --skip-satisfied --installdeps .
35
36    # enable various test options, including parallel testing
37    - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
38
39    # we want these for our tests, but not for any others
40    - export AUTHOR_TESTING=1
41    - export RELEASE_TESTING=1
42
43    - make manifest
44
45 script:
46    - make disttest
47
48    # Test reverse deps (high-profile modules, taken from from Task::Catalyst):
49    #  (note: currently skipping DBIC deps for speed)
50    - make install
51
52    # pure author deps (of reverse deps):
53    - cpanm --notest --metacpan --skip-satisfied YAML::Syck
54
55    # both author deps & reverse deps:
56    - cpanm --metacpan --skip-satisfied Catalyst::View::TT
57    - cpanm --metacpan --skip-satisfied Catalyst::Plugin::Authentication
58
59    # pure reverse deps (call with --test-only):
60    - cpanm --test-only --metacpan Catalyst::Devel
61    - cpanm --test-only --metacpan Catalyst::Action::REST
62    - cpanm --test-only --metacpan Catalyst::Component::InstancePerContext
63    - cpanm --test-only --metacpan Catalyst::Plugin::Session
64    - cpanm --test-only --metacpan Catalyst::Plugin::Session::State::Cookie
65    - cpanm --test-only --verbose --metacpan Catalyst::Plugin::Static::Simple
66    - cpanm --test-only --metacpan Catalyst::Plugin::ConfigLoader
67    - cpanm --test-only --metacpan Catalyst::Plugin::ConfigLoader
68    - cpanm --test-only --metacpan Catalyst::Authentication::Credential::HTTP
69
70    # Still need to figure out why these fail in travis:
71    #- cpanm --test-only --metacpan -v Catalyst::View::Email
72    #- cpanm --test-only --metacpan -v Catalyst::Plugin::Session::Store::File
73    #- cpanm --test-only --metacpan -v Catalyst::Plugin::I18N