Skip to content

Commit

Permalink
.travis.yml: Let unit tests set the test databases up
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSourcerer committed Jul 11, 2012
1 parent ba97450 commit 14990e6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ php:
before_script:
- cd tests
- mysql -u root -e 'CREATE SCHEMA `yii` CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ON `yii`.* TO test@localhost IDENTIFIED BY "test"; FLUSH PRIVILEGES;'
- mysql -u root -D yii < framework/db/data/mysql.sql
- psql -q -c "CREATE ROLE test WITH PASSWORD 'test' LOGIN;" -U postgres
- psql -q -c 'CREATE DATABASE yii WITH OWNER = test;' -U postgres
- psql -q -c 'GRANT ALL PRIVILEGES ON DATABASE yii TO test;' -U postgres
- psql -q -d yii -f framework/db/data/postgres.sql -U test
- psql -q -d yii -f framework/web/auth/schema.sql -U test
- echo 'y' | pecl install memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )
- echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

Expand Down

0 comments on commit 14990e6

Please sign in to comment.