Permalink
Browse files

Added support for code coverage analysis using coveralls

  • Loading branch information...
1 parent 20290be commit 67ce32c7056fd42cbe2609b41732b181508d0188 @kasperg kasperg committed Jun 5, 2013
Showing with 22 additions and 0 deletions.
  1. +11 −0 .travis.yml
  2. +1 −0 README.md
  3. +6 −0 composer.json
  4. +4 −0 phpunit.xml.dist
View
@@ -2,3 +2,14 @@ language: php
php:
- 5.3
- 5.4
+
+before_script:
+ - curl -s http://getcomposer.org/installer | php
+ - php composer.phar install --dev --no-interaction
+
+script:
+ - mkdir -p build/logs
+ - php vendor/bin/phpunit -c phpunit.xml.dist
+
+after_script:
+ - php vendor/bin/coveralls
View
@@ -1,5 +1,6 @@
# wsdl2phpgenerator
[![Build Status](https://travis-ci.org/reload/wsdl2phpgenerator.png?branch=master)](https://travis-ci.org/reload/wsdl2phpgenerator)
+[![Coverage Status](https://coveralls.io/repos/reload/wsdl2phpgenerator/badge.png?branch=code-coverage-coveralls)](https://coveralls.io/r/reload/wsdl2phpgenerator?branch=code-coverage-coveralls)
Simple WSDL to PHP classes converter. Takes a WSDL file and outputs class files ready to use.
View
@@ -0,0 +1,6 @@
+{
+ "require-dev": {
+ "phpunit/phpunit": "3.7.*",
+ "satooshi/php-coveralls": "dev-master"
+ }
+}
View
@@ -27,4 +27,8 @@
</testsuite>
</testsuites>
+ <logging>
+ <log type="coverage-clover" target="build/logs/clover.xml"/>
+ </logging>
+
</phpunit>

0 comments on commit 67ce32c

Please sign in to comment.