-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
59 lines (59 loc) · 2.13 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo: false
language: perl
perl:
- 'blead'
- '5.24'
- '5.22'
- '5.20'
- '5.18'
- '5.16'
- '5.14'
- '5.12'
- '5.10'
- '5.8'
env:
- BUILD=0
- BUILD=1
matrix:
allow_failures:
- env: BUILD=0
perl: 'blead'
- env: BUILD=0
perl: '5.8'
- env: BUILD=1
perl: 'blead'
- env: BUILD=1
perl: '5.8'
fast_finish: true
before_install:
- 'if [[ $BUILD == 1 && ! -d .build/testing ]]; then unset BUILD; fi'
- export AUTOMATED_TESTING=1 NONINTERACTIVE_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
- git clone git://github.com/haarg/perl-travis-helper
- source perl-travis-helper/init
- build-perl
- perl -V
- 'if [[ $BUILD == 0 ]]; then git config --global user.name "TravisCI"; fi'
- 'if [[ $BUILD == 0 ]]; then git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"; fi'
- 'if [[ $BUILD == 1 ]]; then cd .build/testing; fi'
- 'if [[ $BUILD == 1 ]]; then export AUTHOR_TESTING=0; fi'
- 'if [[ $BUILD == 1 ]]; then cpanm --quiet --notest --skip-satisfied autovivification indirect multidimensional; fi'
install:
- 'if [[ $BUILD == 0 ]]; then cpanm --quiet --notest --skip-satisfied Dist::Zilla; fi'
- "if [[ $BUILD == 0 ]]; then dzil authordeps --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest; fi"
- "if [[ $BUILD == 0 ]]; then dzil listdeps --author --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest; fi"
- 'if [[ $BUILD == 1 ]]; then cpanm --installdeps --verbose --notest .; fi'
script:
- 'if [[ $BUILD == 0 ]]; then dzil smoke --release --author; fi'
- 'if [[ $BUILD == 1 && -f Makefile.PL ]]; then perl Makefile.PL && make test; fi'
- 'if [[ $BUILD == 1 && -f Build.PL ]]; then perl Build.PL && ./Build test; fi'
- 'if [[ $BUILD == 1 && ! -f Makefile.PL && ! -f Build.PL ]]; then make test; fi'
notifications:
email: false
irc:
channels:
- irc.perl.org#sanity
on_failure: always
on_success: change
template:
- '%{branch}#%{build_number} by %{author}: %{message} (%{build_url})'
use_notice: true