pdbrito
pdbrito

Reputation: 552

Disable xdebug during scrutinizer inspections

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

Upvotes: 2

Views: 323

Answers (1)

pdbrito
pdbrito

Reputation: 552

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/' {} \\;"

Upvotes: 1

Related Questions