diff --git a/.travis.yml b/.travis.yml index 021345549cb2e..43a2429b6ec4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,11 @@ before_script: else echo "xdebug.ini does not exist" fi +- | + # Force the MySQL extension for PHP 5.2 + if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]]; then + echo "define( 'WP_USE_EXT_MYSQL', true );" >> wp-tests-config.php + fi - | # Export Composer's global bin dir to PATH, but not on PHP 5.2: if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then