4fbb56ff5aaa898862ce62ad7b5a6db9a685c96c
[catagits/Catalyst-Runtime.git] / .travis.yml
1 language: perl
2 sudo: false
3 perl:
4    - "blead"       # builds perl from git
5    - "dev"         # latest point release
6    - "5.28"
7    - "5.26"
8    - "5.24"
9    - "5.22"
10    - "5.20"
11    - "5.18"
12    - "5.16"
13    - "5.14"
14    - "5.12"
15    - "5.10"
16    - "5.8"
17 matrix:
18   allow_failures:
19     - perl: blead
20     - perl: dev
21
22 before_install:
23    - eval $(curl https://travis-perl.github.io/init) --perl
24    - $HELPERS_ROOT/bin/cpan-config
25 install:
26    - build-dist
27    - cd $BUILD_DIR
28    - cpanm -q --showdeps --with-develop . | grep -v "^perl[~@]" | AUTHOR_TESTING=0 cpanm --notest --metacpan --skip-satisfied
29
30    - test_run='make test'
31    - AUTHOR_TESTING=0 cpanm --notest --metacpan --skip-satisfied Test2::Harness && test_run='yath test t xt' || true
32
33    # enable various test options, including parallel testing
34    - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
35
36    # we want these for our tests, but not for any others
37    - export AUTHOR_TESTING=1
38    - export RELEASE_TESTING=1
39    - export PERL_AUTOINSTALL=--skip
40
41 script:
42    - make && $test_run
43
44    # Test reverse deps (high-profile modules, taken from from Task::Catalyst):
45    #  (note: currently skipping DBIC deps for speed)
46    - make install
47
48    - export AUTHOR_TESTING=0
49    - export RELEASE_TESTING=0
50
51    # pure author deps (of reverse deps):
52    - cpanm --notest --metacpan --skip-satisfied YAML::Syck
53    - cpanm --notest --metacpan Carp::Assert::More@1.16
54    - cpanm --notest --metacpan Test::WWW::Mechanize@1.50
55
56    # both author deps & reverse deps:
57    - cpanm --metacpan --skip-satisfied Catalyst::View::TT || ( cat ~/.cpanm/build.log; false )
58    - cpanm --metacpan --skip-satisfied Catalyst::Plugin::Authentication || ( cat ~/.cpanm/build.log; false )
59
60    # pure reverse deps (call with --test-only):
61    - cpanm --test-only --metacpan -v Catalyst::Devel
62    - cpanm --test-only --metacpan -v Catalyst::Action::REST
63    - cpanm --test-only --metacpan -v Catalyst::Component::InstancePerContext
64    - cpanm --test-only --metacpan -v Catalyst::Plugin::Session
65    - cpanm --test-only --metacpan -v Catalyst::Plugin::Session::State::Cookie
66    - cpanm --test-only --metacpan -v Catalyst::Plugin::Static::Simple
67    - cpanm --test-only --metacpan -v Catalyst::Plugin::ConfigLoader
68    #- cpanm --test-only --verbose --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