Browse Source

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.
tags/2.0.0-alpha
Gevik Babakhani 11 years ago
parent
commit
b5513c84a0
  1. 4
      .travis.yml

4
.travis.yml

@ -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
Loading…
Cancel
Save