Skip to content

Commit

Permalink
travis ci wip
Browse files Browse the repository at this point in the history
  • Loading branch information
resurtm committed Dec 20, 2016
1 parent 1ffe4dd commit ef5cd77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ before_script:

# initialize database
- mysql -e 'CREATE DATABASE `yii2-usuario-test`;';
- mysql -e "CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password;";
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' WITH GRANT OPTION;";
- mysql -u user -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 travis -p "yii2-usuario-test" < tests/data/schema.sql

script:
- composer validate --no-check-lock
Expand Down
2 changes: 1 addition & 1 deletion codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=yii2-usuario-test'
user: 'user'
user: 'travis'
password: ''
dump: tests/_data/schema.sql
Yii2:
Expand Down
2 changes: 1 addition & 1 deletion tests/_app/config/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$db = [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test',
'username' => 'user',
'username' => 'travis',
'password' => '',
'charset' => 'utf8',
];
Expand Down

0 comments on commit ef5cd77

Please sign in to comment.