【问题标题】:Disable xdebug during scrutinizer inspections在审查员检查期间禁用 xdebug
【发布时间】:2018-09-12 13:32:35
【问题描述】:

我们没有使用代码覆盖,因此不需要启用 xdebug。

保持启用但未使用会给我们的测试运行时增加大量开销。

我了解如何禁用 xdebug 的一般步骤,但我正在寻找答案,特别是在使用审查器时这样做

【问题讨论】:

标签: php xdebug scrutinizer


【解决方案1】:

我可以通过编辑我的项目的 .scrutinizer.yml 来包含:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-21
    • 2021-10-04
    • 1970-01-01
    相关资源
    最近更新 更多