53ef9c47d8296ebc00f0f1806d3263554a431905
[dbsrgits/SQL-Translator.git] / .travis.yml
1 language: perl
2 perl:
3   - "blead"
4   - "5.20"
5   - "5.18"
6   - "5.16"
7   - "5.14"
8   - "5.12"
9   - "5.10"
10   - "5.8"
11 env:
12   global:
13     - COVERAGE=1
14     - DBICTEST_PG_DSN=dbi:Pg:dbname=sqlt_test
15     - DBICTEST_PG_USER=postgres
16 matrix:
17   allow_failures:
18     - perl: "blead"
19 before_install:
20   - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
21   - source ~/travis-perl-helpers/init
22   - build-perl
23   - perl -V
24   - cpan-install YAML XML::LibXML # author-mode configure deps
25   - build-dist
26   - cd $BUILD_DIR             # $BUILD_DIR is set by the build-dist command
27 install:
28   - cpan-install --deps XML::Parser DBD::Pg YAML XML::LibXML # Optional test deps
29   - cpan-install --coverage
30 before_script:
31   - psql -U postgres -c 'create database sqlt_test;'
32   - coverage-setup
33 script:
34   - perl Makefile.PL
35   - prove -lrsv $(test-dirs)
36 after_success:
37   - coverage-report