Skip to content

Commit

Permalink
make CI run against mysql and Pg
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Feb 28, 2014
1 parent 419095b commit f7c5013
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@ perl:
- "5.10"
- "5.8"

before_install:
- 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
- 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

install:
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
- cpanm --quiet --notest Devel::Cover::Report::Coveralls SQL::Translator
- cpanm --quiet --notest Devel::Cover::Report::Coveralls SQL::Translator DBD::Pg DBD::mysql DateTime::Format::Pg DateTime::Format::MySQL
- cpanm --quiet --notest --installdeps .
- git clone git://github.com/frioux/DBIx-Introspector ../dbii
- perl -Ilib -It/lib -MTestSchema -e'TestSchema->generate_ddl'

script:
- PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
- PERL5LIB=../dbii/lib PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
- cover
after_success:
- cover -report coveralls

0 comments on commit f7c5013

Please sign in to comment.