Skip to content

Commit

Permalink
[TASK] Add code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Feb 28, 2020
1 parent 3a6f36e commit c398a0d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: coverage.xml
json_path: coverage.json
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
before_script:
- composer install
- composer update

- &coverage
stage: test
php: 7.2
script:
- phpdbg -qrr -d memory_limit=-1 vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover coverage.xml
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- php php-coveralls.phar --verbose
- <<: *coverage
php: 7.2

allow_failures:
- php: 7.2
env: PHPUnit=latest
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# TYPO3 Surf - Powerful and flexible deployment tool for PHP projects [![Build Status](https://travis-ci.org/TYPO3/Surf.svg?branch=master)](https://travis-ci.org/TYPO3/Surf)
[![Build Status](https://img.shields.io/travis/TYPO3/Surf/master.svg?style=flat-square)](https://travis-ci.org/TYPO3/Surf)
[![Coverage Status](https://img.shields.io/coveralls/TYPO3/Surf/master.svg?style=flat-square)](https://coveralls.io/github/TYPO3/Surf?branch=master)
[![Downloads](https://img.shields.io/packagist/dt/TYPO3/Surf.svg?style=flat-square)](https://packagist.org/packages/TYPO3/Surf)

# Powerful and flexible deployment tool for PHP projects

## Description

Expand Down
10 changes: 2 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Documentation</directory>
<directory>./Resources</directory>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit c398a0d

Please sign in to comment.