From 992992b4a3f3912119a54aa542a2946cf3ee3843 Mon Sep 17 00:00:00 2001 From: Suralc Date: Sat, 4 May 2013 15:55:01 +0200 Subject: [PATCH 1/4] Fix build command. --- build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build b/build/build index fff4282..691eba9 100755 --- a/build/build +++ b/build/build @@ -16,5 +16,5 @@ require(__DIR__ . '/../framework/yii.php'); $id = 'yiic-build'; $basePath = __DIR__; -$application = new yii\console\Application($id, $basePath); +$application = new yii\console\Application(array('id' => $id, 'basePath' => $basePath)); $application->run(); From 985f076b2db578bd44c896a1d80faa3a772d6761 Mon Sep 17 00:00:00 2001 From: Taufan Aditya Date: Sat, 4 May 2013 21:47:01 +0700 Subject: [PATCH 2/4] Testsuite config --- phpunit.xml.dist | 13 +++++++++++++ tests/unit/phpunit.xml | 7 ------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 phpunit.xml.dist delete mode 100644 tests/unit/phpunit.xml diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..bf37a26 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,13 @@ + + + + + ./tests/unit + + + \ No newline at end of file diff --git a/tests/unit/phpunit.xml b/tests/unit/phpunit.xml deleted file mode 100644 index 17db94e..0000000 --- a/tests/unit/phpunit.xml +++ /dev/null @@ -1,7 +0,0 @@ - - \ No newline at end of file From 305028b5c81463b977493de208167d87c28f47c0 Mon Sep 17 00:00:00 2001 From: Taufan Aditya Date: Sun, 5 May 2013 00:09:12 +0700 Subject: [PATCH 3/4] Travis configuration --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e4b8278 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php + +php: + - 5.3 + - 5.4 + - 5.5 + +env: + - DB=mysql + +before_script: + - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi" + +script: phpunit \ No newline at end of file From 51de7571401fea3ca272f5862cfb12e4dc0774a4 Mon Sep 17 00:00:00 2001 From: Taufan Aditya Date: Sun, 5 May 2013 00:10:17 +0700 Subject: [PATCH 4/4] Use travis as user instead root within DSN --- tests/unit/data/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/data/config.php b/tests/unit/data/config.php index fc15690..238a7cc 100644 --- a/tests/unit/data/config.php +++ b/tests/unit/data/config.php @@ -3,7 +3,7 @@ return array( 'mysql' => array( 'dsn' => 'mysql:host=127.0.0.1;dbname=yiitest', - 'username' => 'root', + 'username' => 'travis', 'password' => '', 'fixture' => __DIR__ . '/mysql.sql', ),