Skip to content

Commit

Permalink
Update scrutinizer and travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Olicek committed Jan 19, 2016
1 parent d07aa7b commit fa2d6b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
33 changes: 13 additions & 20 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,21 @@ filter:
before_commands:
- 'composer install --prefer-source'

checks:
php:
code_rating: true
duplication: true

tools:
sensiolabs_security_checker: true
php_changetracking: true
php_code_coverage: true
php_mess_detector: true
php_analyzer: true
php_pdepend: true
external_code_coverage:
enabled: true
timeout: 1200
php_sim:
min_mass: 30
php_loc:
excluded_dirs: [assets, vendor, tests]
php_cpd:
excluded_dirs: [assets, vendor, tests]
php_code_sniffer:
enabled: true
config:
ruleset: ./standards.xml
timeout: 600

checks:
coding_style:
php:
code_rating: true
duplication: true
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: false
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ php:
- 5.6
- 7.0

matrix:
allow_failures:
- php: 7.0

before_install:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then COVERAGE="-c `php -i | grep 'xdebug.ini'` --coverage coverage.xml --coverage-src src/"; else COVERAGE="" && if [ $TRAVIS_PHP_VERSION = '5.6' ]; then phpenv config-rm xdebug.ini; fi; fi

Expand All @@ -17,3 +13,10 @@ install:
script:
- vendor/bin/phpcs --standard=standards.xml --extensions=php --encoding=utf-8 -sp src/
- vendor/bin/tester -p php $COVERAGE tests/

after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi

0 comments on commit fa2d6b5

Please sign in to comment.