mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Clean up MySQL configuration for unit tests
This commit is contained in:
parent
c74f84cd9f
commit
4776078c11
2 changed files with 6 additions and 6 deletions
|
|
@ -13,8 +13,8 @@ matrix:
|
|||
sudo: false
|
||||
before_script:
|
||||
- npm install grunt grunt-cli grunt-contrib-jshint grunt-contrib-csslint grunt-phplint --save-dev
|
||||
- mysql -e "CREATE DATABASE xe_test;"
|
||||
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
||||
- mysql -u root -e "CREATE DATABASE rhymix"
|
||||
- mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis')"
|
||||
- php -S localhost:8000 &
|
||||
- if [ $(phpenv version-name) == "5.3" ]; then touch codecept.phar; fi
|
||||
- if [ $(phpenv version-name) == "5.4" ]; then wget http://codeception.com/releases/2.0.16/codecept.phar; fi
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ modules:
|
|||
PhpBrowser:
|
||||
url: 'http://localhost:8000/'
|
||||
DbDropTablesHelper:
|
||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
||||
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||
user: 'root'
|
||||
password: 'root'
|
||||
Db:
|
||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
||||
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||
user: 'root'
|
||||
password: 'root'
|
||||
cleanup: true
|
||||
|
|
@ -18,11 +18,11 @@ env:
|
|||
modules:
|
||||
config:
|
||||
Db:
|
||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
||||
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||
user: 'travis'
|
||||
password: 'travis'
|
||||
cleanup: true
|
||||
DbDropTablesHelper:
|
||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
||||
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||
user: 'travis'
|
||||
password: 'travis'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue