Add coveralls

This commit is contained in:
Ivan Shalganov 2013-09-12 19:59:20 +04:00
parent 872735fef3
commit cf0dec5b09
4 changed files with 18 additions and 4 deletions

5
.coveralls.yml Normal file
View File

@ -0,0 +1,5 @@
service_name: travis-ci
src_dir: src
coverage_clover: build/logs/clover.xml

View File

@ -5,6 +5,11 @@ php:
- 5.4
- 5.5
before_script: composer install --no-dev
before_script:
- composer install --dev
script: phpunit
script:
- phpunit
after_script:
- php vendor/bin/coveralls

View File

@ -15,9 +15,9 @@
"ext-tokenizer": "*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"smarty/smarty": "3.*",
"twig/twig": "1.*"
"twig/twig": "1.*",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": { "Fenom\\": "src/" },

View File

@ -34,4 +34,8 @@
<directory>./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<!--<log type="coverage-php" target="build/cov/coverage.cov"/>-->
</logging>
</phpunit>