X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=.travis.yml;h=497d09874366b8e7edc053d53718b551ee428088;hb=HEAD;hp=b65337406e819df7927f3d0c38f483bbeac7dd54;hpb=e3bc3e3da0c4bf2b223fa896427177017802da24;p=dbsrgits%2FSQL-Translator.git diff --git a/.travis.yml b/.travis.yml index b653374..497d098 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,18 @@ +sudo: false +addons: + apt: + packages: + - libgd2-xpm-dev + - graphviz + - libxml2-dev language: perl perl: - "blead" + - "dev" + - "5.28" + - "5.26" + - "5.24" + - "5.22" - "5.20" - "5.18" - "5.16" @@ -10,28 +22,28 @@ perl: - "5.8" env: global: - - COVERAGE=1 + - COVERAGE="coveralls codecov" - DBICTEST_PG_DSN=dbi:Pg:dbname=sqlt_test - DBICTEST_PG_USER=postgres + - SPLIT_BUILD=0 matrix: allow_failures: - perl: "blead" + - perl: "dev" before_install: - - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers - - source ~/travis-perl-helpers/init - - build-perl - - perl -V - - cpan-install YAML XML::LibXML # author-mode configure deps - - build-dist - - cd $BUILD_DIR # $BUILD_DIR is set by the build-dist command + - eval $(curl https://travis-perl.github.io/init) --perl + - cpan-install File::ShareDir::Install # absolute minimum for Makefile.PL + - perl Makefile.PL # generate deps + - cpan-install --deps # so can regen t/data/roundtrip_autogen.yaml install: - - cpan-install --deps XML::Parser DBD::Pg # Optional test deps + - build-dist + - cd $BUILD_DIR + - $HELPERS_ROOT/bin/cpan-config + - cpan-install --deps CGI DBD::SQLite XML::Parser DBD::Pg # Optional test deps - cpan-install --coverage before_script: - psql -U postgres -c 'create database sqlt_test;' - - coverage-setup script: - - perl Makefile.PL - - prove -lrsv $(test-dirs) -after_success: - - coverage-report + - perl Makefile.PL && make test +services: + - postgresql