Merge branch 'distar' 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    - cpanm --notest --metacpan --skip-satisfied --with-develop --installdeps .
16    - perl Makefile.PL
17
18    # installing Catalyst::Devel above causes the latest release of
19    # Catalyst::Runtime to be installed, but the version we're testing might
20    # have additional deps that aren't yet satisfied. so we should try
21    # installing deps again now that the MYMETA has been created (and we'll also
22    # need to delete the now-unneeded cpanfile so that cpanm doesn't choose it
23    # in preference to the MYMETA)
24    - rm -f cpanfile
25    - cpanm --notest --metacpan --skip-satisfied --installdeps .
26
27    # enable various test options, including parallel testing
28    - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
29
30    # we want these for our tests, but not for any others
31    - export AUTHOR_TESTING=1
32    - export RELEASE_TESTING=1
33
34    - make manifest
35
36 script:
37    - make disttest
38
39    # Test reverse deps (high-profile modules, taken from from Task::Catalyst):
40    #  (note: currently skipping DBIC deps for speed)
41    - make install
42
43    # pure author deps (of reverse deps):
44    - cpanm --notest --metacpan --skip-satisfied YAML::Syck
45
46    # both author deps & reverse deps:
47    - cpanm --metacpan --skip-satisfied Catalyst::View::TT
48    - cpanm --metacpan --skip-satisfied Catalyst::Plugin::Authentication
49
50    # pure reverse deps (call with --test-only):
51    - cpanm --test-only --metacpan Catalyst::Devel
52    - cpanm --test-only --metacpan Catalyst::Action::REST
53    - cpanm --test-only --metacpan Catalyst::Component::InstancePerContext
54    - cpanm --test-only --metacpan Catalyst::Plugin::Session
55    - cpanm --test-only --metacpan Catalyst::Plugin::Session::State::Cookie
56    - cpanm --test-only --verbose --metacpan Catalyst::Plugin::Static::Simple
57    - cpanm --test-only --metacpan Catalyst::Plugin::ConfigLoader
58    - cpanm --test-only --metacpan Catalyst::Plugin::ConfigLoader
59    - cpanm --test-only --metacpan Catalyst::Authentication::Credential::HTTP
60
61    # Still need to figure out why these fail in travis:
62    #- cpanm --test-only --metacpan -v Catalyst::View::Email
63    #- cpanm --test-only --metacpan -v Catalyst::Plugin::Session::Store::File
64    #- cpanm --test-only --metacpan -v Catalyst::Plugin::I18N