From 5f85d333f56e09bb6bfa34ef43dff51470032a47 Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Wed, 6 Dec 2017 19:48:01 +1100 Subject: [PATCH] Use `WP_USE_EXT_MYSQL` to force the MySQL extension for the Travis CI PHP 5.2 job --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) 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