From dfd12341b19a11394301d1fa675c095463d1c7d8 Mon Sep 17 00:00:00 2001 From: resurtm Date: Tue, 20 Dec 2016 21:06:04 +0600 Subject: [PATCH] travis ci wip --- .travis.yml | 9 ++++++--- codeception.dist.yml | 2 +- tests/_app/config/db.php | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 152c363..918fa21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/codeception.dist.yml b/codeception.dist.yml index a04cc98..bb6f6cd 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -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: diff --git a/tests/_app/config/db.php b/tests/_app/config/db.php index d1f7a61..ef85450 100644 --- a/tests/_app/config/db.php +++ b/tests/_app/config/db.php @@ -3,7 +3,7 @@ $db = [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test', - 'username' => 'travis', + 'username' => 'root', 'password' => '', 'charset' => 'utf8', ];