mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Merge pull request #678 from suralc/coveralls-impl-2
Coveralls.io travis settings and phpunit
This commit is contained in:
4
.coveralls.yml
Normal file
4
.coveralls.yml
Normal file
@@ -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
|
||||
@@ -6,7 +6,13 @@ php:
|
||||
- 5.5
|
||||
|
||||
before_script:
|
||||
- composer self-update && composer --version
|
||||
- composer require satooshi/php-coveralls 0.6.*
|
||||
- mysql -e 'CREATE DATABASE yiitest;';
|
||||
- psql -U postgres -c 'CREATE DATABASE yiitest;';
|
||||
|
||||
script: phpunit
|
||||
script:
|
||||
- phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml
|
||||
|
||||
after_script:
|
||||
- php vendor/bin/coveralls
|
||||
@@ -10,4 +10,21 @@
|
||||
<directory>./tests/unit</directory>
|
||||
</testsuite>
|
||||
</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>
|
||||
0
tests/unit/runtime/coveralls/.gitkeep
Normal file
0
tests/unit/runtime/coveralls/.gitkeep
Normal file
Reference in New Issue
Block a user