WordPress.org

Make WordPress Core

Ticket #49783: 49783.diff

File 49783.diff, 1.2 KB (added by johnbillion, 10 months ago)
  • .gitignore

    diff --git a/.gitignore b/.gitignore
    index 01757f7a0b..98ca5434da 100644
    a b wp-tests-config.php 
    1717/npm-debug.log
    1818/build
    1919/tests/phpunit/build
     20/tests/cache/phpcs.json
    2021/wp-cli.local.yml
    2122/jsdoc
    2223/vendor
  • .travis.yml

    diff --git a/.travis.yml b/.travis.yml
    index 46b72aa055..4ed6c4748b 100644
    a b cache: 
    1212  apt: true
    1313  directories:
    1414    - $HOME/.npm
     15    - tests/cache
    1516    - vendor
    1617
    1718env:
  • phpcs.xml.dist

    diff --git a/phpcs.xml.dist b/phpcs.xml.dist
    index af60e89e57..bd3a80d976 100644
    a b  
    66        <arg name="extensions" value="php"/>
    77
    88        <!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
    9         <arg name="cache"/>
     9        <arg name="cache" value="tests/cache/phpcs.json"/>
    1010
    1111        <!-- Set the memory limit to 256M.
    1212                 For most standard PHP configurations, this means the memory limit will temporarily be raised.
  • new file tests/cache/.gitkeep

    diff --git a/tests/cache/.gitkeep b/tests/cache/.gitkeep
    new file mode 100644
    index 0000000000..127395ce6e
    - +  
     1Important: This directory cannot be empty.