-
Notifications
You must be signed in to change notification settings - Fork 195
/
.travis.yml
65 lines (50 loc) · 2.04 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
60
61
62
63
64
65
language: perl
perl:
- "5.22"
notifications:
email:
recipients:
- olaf@wundersolutions.com
on_success: always
on_failure: always
irc: "irc.perl.org#metacpan-travis"
env:
global:
# We use a non-standard port to avoid trashing production
# but travis will have it running on the standard port.
- ES=localhost:9200
# Carton --deployment only works on the same version of perl
# that the snapshot was built from.
- DEPLOYMENT_PERL_VERSION=5.22
# Instantiate Catalyst models using metacpan_server_testing.conf
- METACPAN_SERVER_CONFIG_LOCAL_SUFFIX=testing
matrix:
- USE_CPANFILE_SNAPSHOT=true
- USE_CPANFILE_SNAPSHOT=false
before_install:
- sudo service elasticsearch stop && curl -O -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-2.3.0.deb && sudo dpkg -i --force-confnew elasticsearch-2.3.0.deb && sudo service elasticsearch start
# Run update to make libgmp-dev findable (Required by Net::OpenID::Consumer)
# postgresql-server-dev-all is required by DBD::Pg
- sudo apt-get install libgmp-dev postgresql-server-dev-all
- sudo service elasticsearch restart
- pwd
- cpanm -n Devel::Cover::Report::Coveralls
- cpanm -n Carton
# Carton refuses to update Safe.pm to the version specified in the cpanfile and the
# version that's core in 5.16 is too old (it fails to work with Devel::Cover).
- cpanm -n Safe@2.35
install:
- 'carton install `test "${TRAVIS_PERL_VERSION}" = "${DEPLOYMENT_PERL_VERSION}" && test "${USE_CPANFILE_SNAPSHOT}" = "true" && echo " --deployment"`'
before_script:
- "perl -i -pe 's/(servers :)9900/localhost:9200/' metacpan_server_testing.conf"
script:
# Devel::Cover isn't in the cpanfile
# but if it's installed into the global dirs this should work.
# NOTE: No '-r' for prove; 't/fakecpan.t' does the recursion for us.
- HARNESS_PERL_SWITCHES=-MDevel::Cover=+ignore,local carton exec prove -It/lib -lvr t
after_success:
- cover -report coveralls
#after_failure:
# - cat ~/.cpanm/build.log
services:
- elasticsearch