mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Force travis to create the pgsql test db
This commit is contained in:
@@ -7,10 +7,9 @@ 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 -U postgres -c 'drop database if exists yiitest;'; fi"
|
||||
- sh -c "if [ '$DB' = 'postgres' ]; then psql -U postgres -c 'create database yiitest;'; fi"
|
||||
- psql -U postgres -c 'drop database if exists yiitest;';
|
||||
- psql -U postgres -c 'create database yiitest;';
|
||||
script: phpunit
|
||||
Reference in New Issue
Block a user