Skip to content

Commit

Permalink
Fixed travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Mar 7, 2012
1 parent 511434b commit 353bb8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ env:
- DB=mysql

before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database test;'; fi"
# MySQL
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database test; create schema bookstore_schemas; create schema contest; create schema second_hand_books;'; fi"

# Composer
- wget http://getcomposer.org/composer.phar
- php composer.phar install
- php bin/propel test:prepare --vendor="$DB" --dsn="$DB:dbname=test" --user="root"
Expand Down
2 changes: 1 addition & 1 deletion src/Propel/Generator/Command/TestPrepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestPrepare extends AbstractCommand
'bookstore-packaged' => array('bookstore-packaged', 'bookstore-log'),
'namespaced' => array('bookstore_namespaced'),
'reverse/mysql' => array('reverse-bookstore'),
'schemas' => array('bookstore'),
'schemas' => array('bookstore-schemas'),
);

/**
Expand Down

0 comments on commit 353bb8a

Please sign in to comment.