-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
53 lines (45 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
os:
- linux
- osx
language: perl
perl:
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.20-shrplib"
- "5.18"
- "5.18-shrplib"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "5.8"
env:
- TEST_ELASTICSEARCH=1 TEST_LIVE=1 TEST_HOST=localhost TEST_PORT=9200 TEST_COUCHDB=http://localhost:5984/
services:
- elasticsearch
- couchdb
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -L https://install.perlbrew.pl | bash ; source $HOME/perl5/perlbrew/etc/bashrc; perlbrew install -j4 --notest --as perl-$TRAVIS_PERL_VERSION $(perlbrew available | grep $TRAVIS_PERL_VERSION | cut -c4- | head -1); perlbrew clean; perlbrew install-cpanm; perlbrew use "$TRAVIS_PERL_VERSION"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers; source ~/travis-perl-helpers/init; build-perl; fi
- perl -V
- cpanm --notest Devel::Cover Devel::Cover::Report::Coveralls Test::More~0.98
script:
if [[ "$TRAVIS_PERL_VERSION" != "5.8" ]]; then PERL5OPT=-MDevel::Cover prove -l -v -r t && cover -report coveralls; else prove -lrv t; fi
notifications:
irc:
channels:
- "irc.freenode.org#chupei.pm"
use_notice: true
git:
depth: 1
matrix:
allow_failures:
- perl: 5.8
- os: osx
perl: 5.20-shrplib
- os: osx
perl: 5.18-shrplib