Commit b5513c84 by Gevik Babakhani

Added db creation for travis CI This needs to be done in two seperate

command since postgres does not accept db creation in multiline statement.
parent 0fd390ca
......@@ -7,8 +7,10 @@ php:
env:
- DB=mysql
- DB=postgres
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'drop database if exists yiitest;'; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database yiitest;'; fi"
script: phpunit
\ No newline at end of file
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