Browse Source

Travis-ci and phpunit config for coveralls

tags/2.0.0-beta
Suralc 12 years ago
parent
commit
e9f22eb44e
  1. 4
      .coveralls.yml
  2. 8
      .travis.yml
  3. 17
      phpunit.xml.dist
  4. 2
      tests/unit/runtime/.gitignore

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

2
tests/unit/runtime/.gitignore vendored

@ -1 +1 @@
*
*
Loading…
Cancel
Save