Commit 1c9c24a7 authored by Marco Pivetta's avatar Marco Pivetta

Merge pull request #668 from till/topics/fix-.travis.yml

Fix: Travis-CI configuration
parents 14f730fb cf65ad0c
......@@ -16,6 +16,12 @@ env:
- DB=sqlite
- DB=mysqli
before_install:
- composer self-update
install:
- composer update --prefer-source
before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
......@@ -24,8 +30,6 @@ before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then sudo service postgresql stop; sudo service postgresql start $POSTGRESQL_VERSION; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
- sh -c "if [ '$DB' = 'mysqli' ]; then mysql -e 'create database IF NOT EXISTS doctrine_tests_tmp;create database IF NOT EXISTS doctrine_tests;'; fi"
- composer self-update
- composer update --prefer-source
script: phpunit --configuration tests/travis/$DB.travis.xml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment