Repository Config
# This does enable a better analysis of php code
# (see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/),
# but at the same time it does try to install dependencies of the bundle
# and fails with oom, at least for php 5.6 / composer 1.
# It would probably be better to tell scrutinizer to _not_ run composer at
# all, or to start from a lock file (but which one?) - it should be possible by
# overtaking the config build/dependencies/before ...
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
# q: since the code analysis runs in scala, why do we need to set
# php version? (note that we run code coverage with 7.4)
# Also, specifying 7.4 gets us 7.4.27 atm, instead of 7.4.32...
environment:
php:
version: 7.4
filter:
excluded_paths:
- 'Tests/*'
dependency_paths:
- 'vendor/'
checks:
php:
code_rating: true
duplication: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false
# we run code-coverage in github builds, no need to run it
tools:
external_code_coverage: true