travis ci wip

This commit is contained in:
resurtm
2016-12-20 21:06:04 +06:00
parent ef5cd776c5
commit dfd12341b1
3 changed files with 8 additions and 5 deletions

View File

@ -11,6 +11,9 @@ php:
- 7.1
- nightly
services:
- mysql
matrix:
fast_finish: true
allow_failures:
@ -35,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 travis -p "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;";
- mysql -u root "yii2-usuario-test" < tests/data/schema.sql
script:
- composer validate --no-check-lock

View File

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

View File

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