Disable xdebug during scrutinizer inspections

334 Views Asked by At

We're not using code coverage so there's no need for xdebug to be enabled.

Leaving it enabled but unused is adding significant overhead to our test runtime.

I understand the generic steps of how to disable xdebug but I'm looking for answers specifically with doing so whilst using scrutinizer

1

There are 1 best solutions below

0
On BEST ANSWER

I was able to accomplish this by editing my project's .scrutinizer.yml to include:

build:
    dependencies:
        before:
            - "find /home/scrutinizer/.phpenv/versions -name 'php.ini' -exec sed -i 's/^zend_extension_ts/;zend_extension_ts/' {} \\;"