Skip to content

Commit

Permalink
Merge pull request #18 from jmleroux/jml-cleancode
Browse files Browse the repository at this point in the history
Clean code and add scrutinizer integration
  • Loading branch information
liuggio committed Mar 16, 2016
2 parents df9febd + a113bd7 commit 5336a12
Show file tree
Hide file tree
Showing 11 changed files with 1,296 additions and 381 deletions.
23 changes: 23 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
checks:
php:
code_rating: true
duplication: true

filter:
paths:
- src/*

build:
dependencies:
before:
- composer require "henrikbjorn/phpspec-code-coverage" "~0.2"
environment:
php:
version: 5.6
tests:
override:
-
command: 'bin/phpspec run -f progress -c phpspec-scrutinizer.yml'
coverage:
file: 'coverage.clover'
format: 'php-clover'
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ php:

matrix:
allow_failures:
- php: 7.0
- php: hhvm

before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
- composer selfupdate

install:
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --no-interaction install
- composer --prefer-dist --no-interaction update

script:
- bin/phpspec run --format=pretty
- bin/behat

notifications:
email:
- liuggio@gmail.com
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ according to [Shields specification](https://github.com/badges/shields#specifica
This library is used by https://poser.pugx.org

[![Latest Stable Version](https://poser.pugx.org/badges/poser/version.svg)](https://packagist.org/packages/badges/poser) [![Latest Unstable Version](https://poser.pugx.org/badges/poser/v/unstable.svg)](//packagist.org/packages/badges/poser) [![Total Downloads](https://poser.pugx.org/badges/poser/downloads.svg)](https://packagist.org/packages/badges/poser)

[![Build Status](https://travis-ci.org/badges/poser.svg?branch=master)](https://travis-ci.org/badges/poser)

## Use as command

Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"psr-4": { "PUGX\\Poser\\": "src/" }
},
"require": {
"symfony/console": "~2.0|~3.0"
"php": ">=5.3",
"symfony/console": "~2.0|~3.0",
"coduo/phpspec-data-provider-extension": "^1.0"
},
"require-dev": {
"phpspec/phpspec": "2.*",
Expand Down
Loading

0 comments on commit 5336a12

Please sign in to comment.