Skip to content

Commit

Permalink
Add scrutinizer code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: jmoulin <jmoulin@castelis.com>
  • Loading branch information
jaymoulin committed Apr 14, 2017
1 parent 05e7504 commit 908f747
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false
build:
tests:
override:
-
command: 'composer phpunit'
coverage:
file: 'build/logs/clover.xml'
format: 'clover'
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
install: composer install
script: composer phpunit
after_script:
- composer phpcs
- composer phploc
- composer phpcpd
- composer phpmd
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[![Latest Stable Version](https://poser.pugx.org/femtopixel/crop/v/stable)](https://packagist.org/packages/femtopixel/crop)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3-8892BF.svg?style=flat-square)](https://php.net/)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square)](https://php.net/)
[![Build status](https://travis-ci.org/femtopixel/crop.svg)](https://travis-ci.org/femtopixel/crop)
[![Build Status](https://scrutinizer-ci.com/g/femtopixel/crop/badges/build.png?b=master)](https://scrutinizer-ci.com/g/femtopixel/crop/build-status/master)
[![Dependency Status](https://www.versioneye.com/user/projects/575fe512433d18002c19d66d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/575fe512433d18002c19d66d)
[![Code Climate](https://codeclimate.com/github/femtopixel/crop/badges/gpa.svg)](https://codeclimate.com/github/femtopixel/crop)
[![Test Coverage](https://codeclimate.com/github/femtopixel/crop/badges/coverage.svg)](https://codeclimate.com/github/femtopixel/crop/coverage)
[![Issue Count](https://codeclimate.com/github/femtopixel/crop/badges/issue_count.svg)](https://codeclimate.com/github/femtopixel/crop)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/femtopixel/crop/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/femtopixel/crop/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/femtopixel/crop/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/femtopixel/crop/?branch=master)
[![License](https://poser.pugx.org/femtopixel/crop/license)](https://packagist.org/packages/femtopixel/crop)

Crop
Expand Down Expand Up @@ -50,4 +49,4 @@ Each format given in method `setFormatsFromArray` must define `width`, `height`
- `none` : No cropping, no resize. Will render image with original file dimensions.
- `cropped` : Crop the rendered image to be exactly dimensions defined in configuration.
- `height` : Resize the image without distortion to have height to value defined in configuration.
- `width` : Resize the image without distortion to have width to value defined in configuration.
- `width` : Resize the image without distortion to have width to value defined in configuration.

0 comments on commit 908f747

Please sign in to comment.