forked from mirror/_s
Travis: speed up build times by disabling Xdebug
Xdebug is only **needed** when creating code coverage reports. Otherwise, it's just a nice extra, but a slow extra. Disabling it will speed up the build times. As suggested by John Blackbourn in https://johnblackbourn.com/reducing-travis-ci-build-times-for-wordpress-projects/ With an additional improvement to stabilize the command as suggested by Niklas Keller in https://twitter.com/kelunik/status/954242454676475904
This commit is contained in:
parent
05511d4846
commit
90e08bd964
|
@ -46,6 +46,9 @@ matrix:
|
|||
# e.g. copy database configurations, environment variables, etc.
|
||||
# Failures in this section will result in build status 'errored'.
|
||||
before_script:
|
||||
# Speed up build time by disabling Xdebug.
|
||||
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
|
||||
# Set up temporary paths.
|
||||
- export PHPCS_DIR=/tmp/phpcs
|
||||
- export SNIFFS_DIR=/tmp/sniffs
|
||||
# Install CodeSniffer for WordPress Coding Standards checks.
|
||||
|
|
Reference in New Issue