blob: 3997535e075f23fb5a10850c5994d6e06742a67a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
language: perl
perl:
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "blead" # builds perl from git
env:
global:
- AUTHOR_TESTING=1
- AUTOMATED_TESTING=1
- RELEASE_TESTING=1
matrix:
include:
- perl: 5.28
env: COVERAGE=1 # enables coverage+coveralls reporting
allow_failures:
- perl: blead # ignore failures for blead perl
sudo: false # faster builds as long as you don't need sudo access
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist
- cd $BUILD_DIR # $BUILD_DIR is set by the build-dist command
install:
- cpan-install --deps # installs prereqs, including recommends
- cpan-install --coverage # installs converage prereqs, if enabled
before_script:
- coverage-setup
after_success:
- coverage-report
script:
- perl Makefile.PL
- make
- prove -b -r -s -j$(test-jobs) $(test-files)
- make install
- unset AUTHOR_TESTING; unset AUTOMATED_TESTING; unset RELEASE_TESTING
- cpanm --test-only HTTP::Message || ( cat ~/.cpanm/build.log; false )
- cpanm --test-only LWP || ( cat ~/.cpanm/build.log; false )
|