Browse Source

Force travis to create the pgsql test db

tags/2.0.0-beta
Gevik Babakhani 12 years ago
parent
commit
8b61ab7f71
  1. 5
      .travis.yml

5
.travis.yml

@ -7,10 +7,9 @@ php:
env: env:
- DB=mysql - DB=mysql
- DB=postgres
before_script: before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi" - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -U postgres -c 'drop database if exists yiitest;'; fi" - psql -U postgres -c 'drop database if exists yiitest;';
- sh -c "if [ '$DB' = 'postgres' ]; then psql -U postgres -c 'create database yiitest;'; fi" - psql -U postgres -c 'create database yiitest;';
script: phpunit script: phpunit
Loading…
Cancel
Save