.travis.yml 761B

1234567891011121314151617181920
  1. language: php
  2. php:
  3. - 5.3
  4. - 5.4
  5. env:
  6. - DB=mysql
  7. - DB=pgsql
  8. - DB=sqlite
  9. before_script:
  10. - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
  11. - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
  12. - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
  13. - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi"
  14. - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
  15. - git submodule update --init
  16. script: phpunit --configuration tests/travis/$DB.travis.xml