-
Notifications
You must be signed in to change notification settings - Fork 90
/
.travis.yml
35 lines (35 loc) · 1.34 KB
/
.travis.yml
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
sudo: false
language: perl
perl:
- '5.28'
- '5.26'
- '5.24'
- '5.22'
- '5.20'
matrix:
fast_finish: true
include:
- perl: '5.30'
env: COVERAGE=1
before_install:
- git config --global user.name "TravisCI"
- git config --global user.email $HOSTNAME":[email protected]"
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
install:
- cpan-install --coverage # installs converage prereqs, if enabled
- cpanm --quiet --notest Devel::Cover::Report::Coveralls #send to coveralls
- cpanm --quiet --notest Dist::Zilla::App::Command::cover #make sure we can dzil cover
- cpanm --quiet --notest --skip-satisfied Dist::Zilla #unfortunately, we need a very new (6.0 or better) dzil, so no perl < 5.14
- cpanm --quiet --notest --skip-satisfied Test::Spec WWW::Mechanize Test::WWW::Selenium #Test::Pod::Coverage can be stupid
- "dzil authordeps --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
- "dzil listdeps --author --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
before_script:
- coverage-setup
script:
- AUTHOR_TESTING=1 RELEASE_TESTING=1 dzil cover
- export BUILDDIR=`find .build -name cover_db`; cd `dirname $BUILDDIR`
after_success:
- coverage-report