Restoring code coverage

This commit is contained in:
James Cole 2015-02-27 20:52:49 +01:00
parent b5fc36a8e1
commit 4237850299
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,2 @@
src_dir: . src_dir: .
coverage_clover: tests/_output/coverage.xml coverage_clover: storage/coverage/clover.xml
json_path: tests/_output/coveralls-upload.json

View File

@ -18,3 +18,6 @@ script:
- phpunit - phpunit
after_script: after_script:
- php vendor/bin/coveralls
- vendor/bin/test-reporter --stdout > codeclimate.json
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

View File

@ -14,6 +14,11 @@
<directory>./tests/</directory> <directory>./tests/</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist>
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php> <php>
<env name="APP_ENV" value="testing"/> <env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/> <env name="CACHE_DRIVER" value="array"/>