Permalink
Browse files

Added Coveralls badge.

  • Loading branch information...
1 parent 7479ea7 commit 2b886cc07caed41149fc7c83f98852740a8dcf1e Phil Sturgeon committed May 3, 2014
Showing with 37 additions and 23 deletions.
  1. +2 −1 .gitignore
  2. +11 −3 .travis.yml
  3. +1 −0 README.md
  4. +3 −3 composer.json
  5. +0 −16 phpunit.xml
  6. +20 −0 phpunit.xml.dist
View
@@ -1,2 +1,3 @@
+build
vendor
-composer.lock
+composer.lock
View
@@ -5,13 +5,21 @@ php:
- 5.4
- 5.5
- 5.6
+ - hhvm
+
+matrix:
+ allow_failures:
+ - php: hhvm
before_script:
- composer self-update
+ - composer require satooshi/php-coveralls:dev-master --no-update --dev
- composer install
- - pyrus install pear/PHP_CodeSniffer
- - phpenv rehash
script:
- - phpcs -n --standard=psr2 src/
+ - mkdir -p build/logs
- phpunit --coverage-text
+ - ./vendor/bin/phpcs src --standard=psr2
+
+after_script:
+ - php vendor/bin/coveralls
View
@@ -2,6 +2,7 @@ Plates
======
[![Build Status](https://travis-ci.org/thephpleague/plates.png?branch=master)](https://travis-ci.org/thephpleague/plates)
+[![Coverage Status](https://coveralls.io/repos/thephpleague/plates/badge.png)](https://coveralls.io/r/thephpleague/plates)
[![Total Downloads](https://poser.pugx.org/league/plates/downloads.png)](https://packagist.org/packages/league/plates)
[![Latest Stable Version](https://poser.pugx.org/league/plates/v/stable.png)](https://packagist.org/packages/league/plates)
View
@@ -18,10 +18,10 @@
"require-dev": {
"phpunit/phpunit": "3.7.*",
"mikey179/vfsStream": "v1.2.0",
- "mockery/mockery": "dev-master@dev"
+ "mockery/mockery": "dev-master@dev",
+ "squizlabs/php_codesniffer": "~1.5"
},
- "autoload":
- {
+ "autoload": {
"psr-4": {
"League\\Plates\\": "src"
}
View
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="vendor/autoload.php" colors="true">
- <testsuites>
- <testsuite name="League Test Suite">
- <directory>tests/League</directory>
- </testsuite>
- </testsuites>
- <filter>
- <blacklist>
- <directory>vendor</directory>
- </blacklist>
- <whitelist>
- <directory suffix=".php">src</directory>
- </whitelist>
- </filter>
-</phpunit>
View
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit colors="true" bootstrap="vendor/autoload.php">
+ <testsuites>
+ <testsuite name="all">
+ <directory suffix="Test.php">tests/</directory>
+ </testsuite>
+ </testsuites>
+ <filter>
+ <whitelist>
+ <directory suffix=".php">src/</directory>
+ </whitelist>
+ </filter>
+ <logging>
+ <log type="tap" target="build/report.tap"/>
+ <log type="junit" target="build/report.junit.xml"/>
+ <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
+ <log type="coverage-text" target="build/coverage.txt"/>
+ <log type="coverage-clover" target="build/logs/clover.xml"/>
+ </logging>
+</phpunit>

0 comments on commit 2b886cc

Please sign in to comment.