From e9f22eb44e59c6d3a0669c44994675441e9324ea Mon Sep 17 00:00:00 2001 From: Suralc Date: Mon, 29 Jul 2013 13:17:57 +0200 Subject: [PATCH] Travis-ci and phpunit config for coveralls --- .coveralls.yml | 4 ++++ .travis.yml | 8 +++++++- phpunit.xml.dist | 17 +++++++++++++++++ tests/unit/runtime/.gitignore | 2 +- 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..c0564c2 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,4 @@ +service_name: travis-ci +src_dir: framework/yii +coverage_clover: tests/unit/runtime/coveralls/clover.xml +json_path: tests/unit/runtime/coveralls/coveralls-upload.json \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1c15d1d..d612dfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,13 @@ php: - 5.5 before_script: + - composer selfupdate && composer --version + - composer require satooshi/php-coveralls 0.6.* - mysql -e 'CREATE DATABASE yiitest;'; - psql -U postgres -c 'CREATE DATABASE yiitest;'; -script: phpunit \ No newline at end of file +script: + - phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml + +after_script: + - php vendor/bin/coveralls \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bf37a26..3100413 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,4 +10,21 @@ ./tests/unit + + + framework/yii/helpers/Json.php + framework/yii/helpers/StringHelper.php + framework/yii/helpers/VarDumper.php + framework/yii/helpers/Html.php + framework/yii/helpers/Inflector.php + framework/yii/helpers/FileHelper.php + framework/yii/helpers/ArrayHelper.php + framework/yii/helpers/Console.php + framework/yii/i18n/GettextFile.php + framework/yii/web/ResponseFormatter.php + framework/yii/base + framework/yii/db/mssql + framework/yii/bootstrap + + \ No newline at end of file diff --git a/tests/unit/runtime/.gitignore b/tests/unit/runtime/.gitignore index 72e8ffc..f59ec20 100644 --- a/tests/unit/runtime/.gitignore +++ b/tests/unit/runtime/.gitignore @@ -1 +1 @@ -* +* \ No newline at end of file