Checkout Config
# .scrutinizer.yml
build:
nodes:
'PHP7.1':
environment:
php: 7.1.27
'PHP7.2':
environment:
php: 7.2.15
'PHP7.3':
environment:
php: 7.3.25
'PHP7.4':
environment:
php: 7.4.13
'SYMFONY3.4':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 3.4.*
'SYMFONY4.0':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 4.0.*
'SYMFONY4.1':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 4.1.*
'SYMFONY4.2':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 4.2.*
'SYMFONY4.3':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 4.3.*
'SYMFONY4.4':
environment:
php: 7.1.27
variables:
SYMFONY_VERSION: 4.4.*
environment:
php:
ini:
'xdebug.mode': "coverage"
dependencies:
before:
- sed -i 's/zend_extension_ts/zend_extension/' ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- if [ "" == "$(php -m | grep zip)" ]; then pecl install zip; fi;
override:
- if [ "" != "$SYMFONY_VERSION" ]; then composer require "symfony/symfony:$SYMFONY_VERSION" --no-update; else composer require "symfony/symfony:4.4.*" --no-update; fi;
- COMPOSER_MEMORY_LIMIT=-1 composer update
tests:
before:
- mkdir -p build/logs
override:
- command: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
coverage:
file: build/logs/clover.xml
format: clover
checks:
php:
code_rating: true
duplication: true
filter:
excluded_paths:
- "Resources/public/*"
- "Tests/*"
- "vendor/*"
tools:
php_analyzer: true
php_code_sniffer: true
php_cpd: true
php_cs_fixer: true
php_loc: true
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true
Repository Config
# language: php