summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 08:47:19 +0200
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2014-08-07 08:47:19 +0200
commitceb820ad0cf981bb00b48f0440ea3b78b1d1b3f4 (patch)
tree0ca3be1b8d0c72645605d8dadbd01f395b28f920
parent4b6eb4a400de159fefa84aa8c5cae7ae06b7d7da (diff)
parent1b7d68bfc0aa09cce6550a35355104ec8e48fb99 (diff)
downloadcsv-ceb820ad0cf981bb00b48f0440ea3b78b1d1b3f4.zip
csv-ceb820ad0cf981bb00b48f0440ea3b78b1d1b3f4.tar.gz
csv-ceb820ad0cf981bb00b48f0440ea3b78b1d1b3f4.tar.bz2
Merge branch 'master' of github.com:thephpleague/csv
-rw-r--r--.travis.yml13
-rw-r--r--README.md10
-rw-r--r--scrutinizer.yml32
3 files changed, 44 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index f1d3202..2cbd333 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
language: php
php:
+ - 5.3
- 5.4
- 5.5
- 5.6
@@ -8,17 +9,15 @@ php:
before_script:
- composer self-update
- - composer require satooshi/php-coveralls:dev-master --no-update --dev
- - composer install --prefer-source
+ - composer install
script:
- - mkdir -p build/logs
- - phpunit --coverage-text
- - ./vendor/bin/phpcs src --standard=psr2
+ - phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- - php vendor/bin/coveralls
+ - wget https://scrutinizer-ci.com/ocular.phar
+ - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
matrix:
allow_failures:
- - php: hhvm
+ - php: hhvm \ No newline at end of file
diff --git a/README.md b/README.md
index b7bb20b..1979ab2 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,12 @@
CSV
==========
-[![Build Status](https://travis-ci.org/thephpleague/csv.png?branch=master)](https://travis-ci.org/thephpleague/csv)
-[![Coverage Status](https://coveralls.io/repos/thephpleague/csv/badge.png)](https://coveralls.io/r/thephpleague/csv)
-[![Total Downloads](https://poser.pugx.org/league/csv/downloads.png)](https://packagist.org/packages/league/csv)
-[![Latest Stable Version](https://poser.pugx.org/league/csv/v/stable.png)](https://packagist.org/packages/league/csv)
+[![Latest Version](https://img.shields.io/github/release/thephpleague/csv.svg?style=flat)](https://github.com/thephpleague/csv/releases)
+[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
+[![Build Status](https://img.shields.io/travis/thephpleague/csv/master.svg?style=flat)](https://travis-ci.org/thephpleague/csv)
+[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/csv.svg?style=flat)](https://scrutinizer-ci.com/g/thephpleague/csv/code-structure)
+[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/csv.svg?style=flat)](https://scrutinizer-ci.com/g/thephpleague/csv)
+[![Total Downloads](https://img.shields.io/packagist/dt/league/csv.svg?style=flat)](https://packagist.org/packages/league/csv)
League\Csv is a simple library to ease CSV parsing, writing and filtering in
PHP. The goal of the library is to be as powerful while remaining lightweight,
diff --git a/scrutinizer.yml b/scrutinizer.yml
new file mode 100644
index 0000000..364c371
--- /dev/null
+++ b/scrutinizer.yml
@@ -0,0 +1,32 @@
+checks:
+ php:
+ code_rating: true
+ remove_extra_empty_lines: true
+ remove_php_closing_tag: true
+ remove_trailing_whitespace: true
+ fix_use_statements:
+ remove_unused: true
+ preserve_multiple: false
+ preserve_blanklines: true
+ order_alphabetically: true
+ fix_php_opening_tag: true
+ fix_linefeed: true
+ fix_line_ending: true
+ fix_identation_4spaces: true
+ fix_doc_comments: true
+tools:
+ external_code_coverage:
+ timeout: 600
+ runs: 4
+ php_code_coverage: false
+ php_code_sniffer:
+ config:
+ standard: PSR2
+ filter:
+ paths: ['src']
+ php_loc:
+ enabled: true
+ excluded_dirs: [vendor, test]
+ php_cpd:
+ enabled: true
+ excluded_dirs: [vendor, test] \ No newline at end of file