Reconfigured database username

Seems @travis-ci did make some changes as per their blog. Updated code to use
the username `root` for connections instead of no user.
This commit is contained in:
Josh Sherman 2014-08-05 18:58:33 -04:00
parent 4645ac95eb
commit fea03520c8
2 changed files with 3 additions and 3 deletions

View file

@ -33,8 +33,8 @@ before_script:
- echo "[uopz]" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - echo "[uopz]" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "uopz.overloads=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - echo "uopz.overloads=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- cat ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - cat ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mysql -e 'create database test;' - mysql -e "create database IF NOT EXISTS test;" -u root
- mysql test < tests/schema.sql - mysql test < tests/schema.sql -u root
- mkdir -p build/logs - mkdir -p build/logs
script: script:

View file

@ -59,7 +59,7 @@ class DatabaseTest extends PHPUnit_Framework_TestCase
'type' => 'mysql', 'type' => 'mysql',
'driver' => 'pdo_mysql', 'driver' => 'pdo_mysql',
'hostname' => 'localhost', 'hostname' => 'localhost',
'username' => '', 'username' => 'root',
'password' => '', 'password' => '',
'database' => 'test', 'database' => 'test',
], ],