From 7c8f9293ccffd63840de6b83cc73575bf4cd7c57 Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Wed, 1 Jul 2015 15:48:55 -0700 Subject: [PATCH] Adding coveralls.io support Updated TravisCI config, using: - http://docs.travis-ci.com/user/languages/php/ - https://github.com/satooshi/php-coveralls#travis-ci Removed automatic code coverage execution when running phpunit Added coveralls.io badge --- .travis.yml | 10 +++++++--- README.md | 4 +++- composer.json | 3 ++- phpunit.xml | 4 ---- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5f9f997..6014a8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,11 @@ php: - hhvm install: - - composer self-update - - composer install --prefer-source + - composer install --no-interaction -script: phpunit +script: + - mkdir -p build/logs + - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml + +after_script: + - php vendor/bin/coveralls -v diff --git a/README.md b/README.md index 42406a0..b583b0f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ [![Latest Stable Version](https://poser.pugx.org/box/spout/v/stable)](https://packagist.org/packages/box/spout) [![Project Status](http://opensource.box.com/badges/active.svg)](http://opensource.box.com/badges) [![Build Status](https://travis-ci.org/box/spout.png?branch=master)](http://travis-ci.org/box/spout) -[![Total Downloads](https://poser.pugx.org/box/spout/downloads)](https://packagist.org/packages/box/spout) [![License](https://poser.pugx.org/box/spout/license)](https://packagist.org/packages/box/spout) +[![Coverage Status](https://coveralls.io/repos/box/spout/badge.svg)](https://coveralls.io/r/box/spout) +[![Total Downloads](https://poser.pugx.org/box/spout/downloads)](https://packagist.org/packages/box/spout) +[![License](https://poser.pugx.org/box/spout/license)](https://packagist.org/packages/box/spout) Spout is a PHP library to read and write CSV and XLSX files, in a fast and scalable way. Contrary to other file readers or writers, it is capable of processing very large files while keeping the memory usage really low (less than 10MB). diff --git a/composer.json b/composer.json index 068ac60..4ef34f6 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "ext-simplexml": "*" }, "require-dev": { - "phpunit/phpunit": ">=3.7" + "phpunit/phpunit": ">=3.7", + "satooshi/php-coveralls": "^0.6.1" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 5de1e0f..01178da 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -14,10 +14,6 @@ - - - - src/