X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=.travis.yml;h=497d09874366b8e7edc053d53718b551ee428088;hb=HEAD;hp=cdf76f5143c950adc2e7dfdadae0191f4a93feb0;hpb=6035bee0678cb745fe0f8b800301a347af922db6;p=dbsrgits%2FSQL-Translator.git diff --git a/.travis.yml b/.travis.yml index cdf76f5..497d098 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,49 @@ +sudo: false +addons: + apt: + packages: + - libgd2-xpm-dev + - graphviz + - libxml2-dev language: perl perl: - - "5.18" - - "5.16" - - "5.14" - - "5.12" - - "5.10" - - "5.8" - + - "blead" + - "dev" + - "5.28" + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + - "5.8" env: - - PERL_MM_USE_DEFAULT=1 - + global: + - 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: + - 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: - - cpanm --quiet --notest Devel::Cover::Report::Coveralls Module::Install::ReadmeFromPod Module::Install::AuthorTests Package::Variant Parse::RecDescent XML::LibXML YAML - - perl Makefile.PL - - cpanm --quiet --notest --installdeps . - + - 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;' script: - - PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t - - cover - -after_success: - - cover -report coveralls + - perl Makefile.PL && make test +services: + - postgresql