2011-11-13 17:44:37 +01:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.3
|
|
|
|
- 5.4
|
2013-02-09 22:44:14 +01:00
|
|
|
- 5.5
|
2014-10-06 14:28:05 +02:00
|
|
|
- 5.6
|
2013-02-09 22:44:14 +01:00
|
|
|
|
2011-11-13 17:44:37 +01:00
|
|
|
env:
|
|
|
|
- DB=mysql
|
|
|
|
- DB=pgsql
|
|
|
|
- DB=sqlite
|
|
|
|
|
|
|
|
before_script:
|
2015-01-22 13:46:29 +01:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION = '5.6' && $DB = 'sqlite' ]]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; else PHPUNIT_FLAGS=""; fi
|
|
|
|
- if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi
|
|
|
|
- if [ $DB = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi
|
|
|
|
- if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi
|
|
|
|
- if [ $DB = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi
|
|
|
|
- if [ $DB = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi
|
2013-09-07 13:20:35 +02:00
|
|
|
- composer install --prefer-dist --dev
|
2011-11-13 17:44:37 +01:00
|
|
|
|
2015-01-22 13:46:29 +01:00
|
|
|
script: phpunit $PHPUNIT_FLAGS --configuration tests/travis/$DB.travis.xml
|
2013-06-27 20:18:21 -04:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- php vendor/bin/coveralls -v
|