travis ci wip

This commit is contained in:
resurtm
2016-12-20 21:18:35 +06:00
parent dfd12341b1
commit 2f9b26a0c6
2 changed files with 12 additions and 3 deletions

View File

@ -38,9 +38,9 @@ before_script:
# initialize database
- mysql -e 'CREATE DATABASE `yii2-usuario-test`;';
#- mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
#- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
- mysql -u root "yii2-usuario-test" < tests/data/schema.sql
- mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
- php tests/_app/yii.php migrate/up --interactive=0
script:
- composer validate --no-check-lock

View File

@ -12,4 +12,13 @@ return [
'cache' => null,
'db' => require __DIR__.'/db.php',
],
'controllerMap' => [
'migrate' => [
'class' => \yii\console\controllers\MigrateController::class,
'migrationPath' => null,
'migrationNamespaces' => [
'Da\User\Migration',
],
],
],
];