travis ci wip

This commit is contained in:
resurtm
2016-12-20 20:58:43 +06:00
parent 1ffe4dda01
commit ef5cd776c5
3 changed files with 5 additions and 5 deletions

View File

@ -35,9 +35,9 @@ before_script:
# initialize database # initialize database
- mysql -e 'CREATE DATABASE `yii2-usuario-test`;'; - mysql -e 'CREATE DATABASE `yii2-usuario-test`;';
- mysql -e "CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password;"; - mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' WITH GRANT OPTION;"; - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
- mysql -u user -p "yii2-usuario-test" < tests/data/schema.sql - mysql -u travis -p "yii2-usuario-test" < tests/data/schema.sql
script: script:
- composer validate --no-check-lock - composer validate --no-check-lock

View File

@ -12,7 +12,7 @@ modules:
config: config:
Db: Db:
dsn: 'mysql:host=localhost;dbname=yii2-usuario-test' dsn: 'mysql:host=localhost;dbname=yii2-usuario-test'
user: 'user' user: 'travis'
password: '' password: ''
dump: tests/_data/schema.sql dump: tests/_data/schema.sql
Yii2: Yii2:

View File

@ -3,7 +3,7 @@
$db = [ $db = [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test', 'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test',
'username' => 'user', 'username' => 'travis',
'password' => '', 'password' => '',
'charset' => 'utf8', 'charset' => 'utf8',
]; ];