From 90e08bd964a6c17093ef36fa65e8d4503139d534 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 15 Jan 2018 03:25:47 +0100 Subject: [PATCH] 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 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index a40b9756..8bfa851b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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.