Commit | Line | Data |
209210df |
1 | language: perl |
4d7949d9 |
2 | sudo: false |
209210df |
3 | perl: |
3e9adc7c |
4 | - "blead" # builds perl from git |
5 | - "dev" # latest point release |
6 | - "5.28" |
e802107a |
7 | - "5.26" |
2419db2c |
8 | - "5.24" |
49b1808f |
9 | - "5.22" |
94c34b14 |
10 | - "5.20" |
44cf0958 |
11 | - "5.18" |
209210df |
12 | - "5.16" |
13 | - "5.14" |
14 | - "5.12" |
15 | - "5.10" |
adde9a4e |
16 | - "5.8" |
3e9adc7c |
17 | matrix: |
18 | allow_failures: |
19 | - perl: blead |
20 | - perl: dev |
209210df |
21 | |
c469bbef |
22 | before_install: |
66dcda7e |
23 | - eval $(curl https://travis-perl.github.io/init) --perl |
c469bbef |
24 | - $HELPERS_ROOT/bin/cpan-config |
209210df |
25 | install: |
0e357612 |
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 |
209210df |
32 | |
6168fe6b |
33 | # enable various test options, including parallel testing |
34 | - export AUTOMATED_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 |
35 | |
209210df |
36 | # we want these for our tests, but not for any others |
37 | - export AUTHOR_TESTING=1 |
38 | - export RELEASE_TESTING=1 |
1efe7373 |
39 | - export PERL_AUTOINSTALL=--skip |
209210df |
40 | |
209210df |
41 | script: |
0e357612 |
42 | - make && $test_run |
2aa2f26a |
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 | |
5cff3cab |
48 | - export AUTHOR_TESTING=0 |
49 | - export RELEASE_TESTING=0 |
50 | |
2aa2f26a |
51 | # pure author deps (of reverse deps): |
52 | - cpanm --notest --metacpan --skip-satisfied YAML::Syck |
136fa8da |
53 | - cpanm --notest --metacpan Carp::Assert::More@1.16 |
ff2c812d |
54 | - cpanm --notest --metacpan Test::WWW::Mechanize@1.50 |
2aa2f26a |
55 | |
56 | # both author deps & reverse deps: |
55c5e117 |
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 ) |
2aa2f26a |
59 | |
60 | # pure reverse deps (call with --test-only): |
55c5e117 |
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 |
b87b8e45 |
68 | #- cpanm --test-only --verbose --metacpan Catalyst::Authentication::Credential::HTTP |
2aa2f26a |
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 |