travis ci wip
This commit is contained in:
@ -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
|
||||
|
||||
@ -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',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user