Browse Source

Merge pull request #678 from suralc/coveralls-impl-2

Coveralls.io travis settings and phpunit
tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
376bddbe18
  1. 4
      .coveralls.yml
  2. 8
      .travis.yml
  3. 17
      phpunit.xml.dist
  4. 2
      tests/unit/runtime/.gitignore
  5. 0
      tests/unit/runtime/coveralls/.gitkeep

4
.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

8
.travis.yml

@ -6,7 +6,13 @@ php:
- 5.5 - 5.5
before_script: before_script:
- composer self-update && 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:
- phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml
after_script:
- php vendor/bin/coveralls

17
phpunit.xml.dist

@ -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>

2
tests/unit/runtime/.gitignore vendored

@ -1 +1 @@
* *

0
tests/unit/runtime/coveralls/.gitkeep

Loading…
Cancel
Save