-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.travis.yml
50 lines (43 loc) · 1.44 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
language: perl
perl:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "blead"
matrix:
include:
- perl: 5.18
env: COVERAGE=1
allow_failures:
- perl: "blead"
before_install:
- git clone git://github.com/haarg/perl-travis-helper
- source perl-travis-helper/init
- build-perl
- perl -V
- sudo /etc/init.d/mysql restart
- mysql -e 'create database dbii_test;'
- export DBIITEST_MYSQL_DSN='dbi:mysql:database=dbii_test;host=127.0.0.1'
- export DBIITEST_MYSQL_USER=root
- sudo /etc/init.d/postgresql restart
- psql -c 'create database dbii_test;' -U postgres
- export DBIITEST_PG_DSN='dbi:Pg:database=dbii_test;host=127.0.0.1'
- export DBIITEST_PG_USER=postgres
- /bin/sync
install:
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=c HARNESS_TIMER=1
- cpanm --quiet --notest SQL::Translator DBD::Pg DBD::mysql DateTime::Format::Pg DateTime::Format::MySQL
- cpanm --quiet --notest --installdeps .
- if [ "$COVERAGE" ]; then cpanm --quiet --notest Devel::Cover::Report::Coveralls; fi
- perl -Ilib -It/lib -MTestSchema -e'TestSchema->generate_ddl'
script:
- if [ "$COVERAGE" ]; then PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t; else prove -lrsv t; fi
- if [ "$COVERAGE" ]; then cover; fi
after_success:
- if [ "$COVERAGE" ]; then cover -report coveralls; fi