#39978 closed task (blessed) (fixed)
Disable Xdebug during tests on Travis
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
My local installation was running its tests 2x slower than I expected, and I narrowed down the problem to the Xdebug extension being unexpectedly enabled on the CLI. Disabling Xdebug restored the test suite speed back to its previous level.
I did some research and it turns out Xdebug can be disabled on Travis. Refs:
- https://docs.travis-ci.com/user/languages/php#Disabling-preinstalled-PHP-extensions
- https://github.com/travis-ci/travis-ci/issues/444
- https://github.com/travis-ci/travis-ci/issues/5780
It would be worth pushing a change which disables Xdebug for core to see if it speeds things up (it should) and to see if it breaks anything (it shouldn't).
Attachments (1)
Change History (18)
#3
@
8 years ago
- Owner set to johnbillion
- Status changed from new to accepted
This worked better than I expected.
Total time on Travis has dropped from ~2h30 to ~1h30, and the actual build test time has dropped from ~40 mins to ~24 mins.
Need to fix the error that it's causing on hhvm and php nightly.
Ref: https://travis-ci.org/aaronjorbin/develop.wordpress/builds
#5
@
8 years ago
- Keywords has-patch removed
- Resolution set to fixed
- Status changed from accepted to closed
In 40138: