Closed igormukhingmailcom closed 4 years ago
Thanks @igormukhingmailcom!
Linking as duplicate of #105
Scrutinizer by default run composer install with --ignore-platform-reqs
.
So if you want to run Scrutinizer with lower or multiple versions of PHP, you can do it with these lines in your .scrutinizer.yml
:
build:
dependencies:
override:
- composer install --no-interaction --no-scripts
tests:
override:
- php-scrutinizer-run
nodes:
php72:
environment:
php:
version: 7.2
php73:
environment:
php:
version: 7.3
php74:
environment:
php:
version: 7.4
This is a hint for users coming from google...
As Scrutinizer can use php version less than 7.4 by default, you can have next exception:
Example: https://scrutinizer-ci.com/g/Setono/SyliusTrustpilotPlugin/inspections/e4dcd104-7acf-441a-b6b7-d7275213477b
To fix that, just add next lines to your
.scrutinizer.yml
: