mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 11:33:55 +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
|
sudo: false
|
||||||
before_script:
|
before_script:
|
||||||
- npm install grunt grunt-cli grunt-contrib-jshint grunt-contrib-csslint grunt-phplint --save-dev
|
- npm install grunt grunt-cli grunt-contrib-jshint grunt-contrib-csslint grunt-phplint --save-dev
|
||||||
- mysql -e "CREATE DATABASE xe_test;"
|
- mysql -u root -e "CREATE DATABASE rhymix"
|
||||||
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
- mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis')"
|
||||||
- php -S localhost:8000 &
|
- php -S localhost:8000 &
|
||||||
- if [ $(phpenv version-name) == "5.3" ]; then touch codecept.phar; fi
|
- 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
|
- if [ $(phpenv version-name) == "5.4" ]; then wget http://codeception.com/releases/2.0.16/codecept.phar; fi
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ modules:
|
||||||
PhpBrowser:
|
PhpBrowser:
|
||||||
url: 'http://localhost:8000/'
|
url: 'http://localhost:8000/'
|
||||||
DbDropTablesHelper:
|
DbDropTablesHelper:
|
||||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||||
user: 'root'
|
user: 'root'
|
||||||
password: 'root'
|
password: 'root'
|
||||||
Db:
|
Db:
|
||||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||||
user: 'root'
|
user: 'root'
|
||||||
password: 'root'
|
password: 'root'
|
||||||
cleanup: true
|
cleanup: true
|
||||||
|
|
@ -18,11 +18,11 @@ env:
|
||||||
modules:
|
modules:
|
||||||
config:
|
config:
|
||||||
Db:
|
Db:
|
||||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||||
user: 'travis'
|
user: 'travis'
|
||||||
password: 'travis'
|
password: 'travis'
|
||||||
cleanup: true
|
cleanup: true
|
||||||
DbDropTablesHelper:
|
DbDropTablesHelper:
|
||||||
dsn: 'mysql:host=127.0.0.1;dbname=xe_test'
|
dsn: 'mysql:host=localhost;dbname=rhymix'
|
||||||
user: 'travis'
|
user: 'travis'
|
||||||
password: 'travis'
|
password: 'travis'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue