travis ci wip
This commit is contained in:
@ -11,6 +11,9 @@ php:
|
|||||||
- 7.1
|
- 7.1
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
services:
|
||||||
|
- mysql
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
@ -35,9 +38,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 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
|
#- mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;";
|
||||||
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
|
#- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
|
||||||
- mysql -u travis -p "yii2-usuario-test" < tests/data/schema.sql
|
- mysql -u root "yii2-usuario-test" < tests/data/schema.sql
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- composer validate --no-check-lock
|
- composer validate --no-check-lock
|
||||||
|
|||||||
@ -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: 'travis'
|
user: 'root'
|
||||||
password: ''
|
password: ''
|
||||||
dump: tests/_data/schema.sql
|
dump: tests/_data/schema.sql
|
||||||
Yii2:
|
Yii2:
|
||||||
|
|||||||
@ -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' => 'travis',
|
'username' => 'root',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user