Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / dbal / .travis.yml
1 language: php
2
3 php:
4   - 5.3
5   - 5.4
6 env:
7   - DB=mysql
8   - DB=pgsql
9   - DB=sqlite
10   - DB=mysqli
11
12 before_script:
13   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
14   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
15   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
16   - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests_tmp;' -U postgres; fi"
17   - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
18   - sh -c "if [ '$DB' = 'mysqli' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
19   - git submodule update --init
20
21 script: phpunit --configuration tests/travis/$DB.travis.xml
22