Commit e9f22eb4 by Suralc

Travis-ci and phpunit config for coveralls

parent e5cc17f9
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
...@@ -6,7 +6,13 @@ php: ...@@ -6,7 +6,13 @@ php:
- 5.5 - 5.5
before_script: before_script:
- composer selfupdate && composer --version
- composer require satooshi/php-coveralls 0.6.*
- mysql -e 'CREATE DATABASE yiitest;'; - mysql -e 'CREATE DATABASE yiitest;';
- psql -U postgres -c 'CREATE DATABASE yiitest;'; - psql -U postgres -c 'CREATE DATABASE yiitest;';
script: phpunit script:
\ No newline at end of file - phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml
after_script:
- php vendor/bin/coveralls
\ No newline at end of file
...@@ -10,4 +10,21 @@ ...@@ -10,4 +10,21 @@
<directory>./tests/unit</directory> <directory>./tests/unit</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<blacklist>
<file>framework/yii/helpers/Json.php</file>
<file>framework/yii/helpers/StringHelper.php</file>
<file>framework/yii/helpers/VarDumper.php</file>
<file>framework/yii/helpers/Html.php</file>
<file>framework/yii/helpers/Inflector.php</file>
<file>framework/yii/helpers/FileHelper.php</file>
<file>framework/yii/helpers/ArrayHelper.php</file>
<file>framework/yii/helpers/Console.php</file>
<file>framework/yii/i18n/GettextFile.php</file>
<file>framework/yii/web/ResponseFormatter.php</file>
<directory suffix="Exception.php">framework/yii/base</directory>
<directory suffix=".php">framework/yii/db/mssql</directory>
<directory suffix=".php">framework/yii/bootstrap</directory>
</blacklist>
</filter>
</phpunit> </phpunit>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment