Skip to content

Commit

Permalink
Test coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessel Strengholt committed Nov 22, 2016
1 parent bed5031 commit 270a0bb
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ php:
- 5.6
- 7.0
- 7.1
- hhvm

env:
- SYMFONY_VERSION=3.1.*
install:
- composer require satooshi/php-coveralls:~0.6@stable

before_script:
- mkdir -p build/logs
- composer install

script: ./vendor/bin/phpunit Tests
script:
- phpunit --coverage-clover build/logs/clover.xml

after_success:
- bin/coveralls -v --exclude-no-stmt

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It is using [Mollie-php-api](https://github.com/mollie/mollie-api-php/). A Molli

For more information see [Mollie](https://www.mollie.com/)

[![Build Status](https://travis-ci.org/Shivella/ideal-bundle.svg?branch=master)](https://travis-ci.org/Shivella/ideal-bundle) [![Latest Stable Version](https://poser.pugx.org/shivella/ideal-bundle/v/stable)](https://packagist.org/packages/shivella/ideal-bundle) [![License](https://poser.pugx.org/shivella/ideal-bundle/license)](https://packagist.org/packages/shivella/ideal-bundle) [![Total Downloads](https://poser.pugx.org/shivella/ideal-bundle/downloads)](https://packagist.org/packages/shivella/ideal-bundle)
[![Build Status](https://travis-ci.org/Shivella/ideal-bundle.svg?branch=master)](https://travis-ci.org/Shivella/ideal-bundle) [![Latest Stable Version](https://poser.pugx.org/shivella/ideal-bundle/v/stable)](https://packagist.org/packages/shivella/ideal-bundle) [![License](https://poser.pugx.org/shivella/ideal-bundle/license)](https://packagist.org/packages/shivella/ideal-bundle) [![Total Downloads](https://poser.pugx.org/shivella/ideal-bundle/downloads)](https://packagist.org/packages/shivella/ideal-bundle) [![Coverage Status](https://coveralls.io/repos/github/Shivella/ideal-bundle/badge.svg?branch=master)](https://coveralls.io/github/Shivella/ideal-bundle?branch=master)

Installation
------------
Expand Down
37 changes: 37 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="vendor/autoload.php">
<php>
<ini name="error_reporting" value="E_ALL" />
</php>

<testsuites>
<testsuite name="iDEAL Symfony3 bundle">
<directory>./Tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./</directory>
<exclude>
<directory>./vendor</directory>
<directory>./Tests</directory>
</exclude>
</whitelist>
</filter>

<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
</phpunit>

0 comments on commit 270a0bb

Please sign in to comment.