WordPress.org

Make WordPress Core

Ticket #42811: 42811.diff

File 42811.diff, 1.5 KB (added by dd32, 3 years ago)
  • .travis.yml

    before_install: 
    4242  fi
    4343- |
    4444  if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
    4545    cp tests/phpunit/includes/object-cache.php src/wp-content/object-cache.php
    4646    echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    4747  fi
    4848before_script:
    4949- |
    5050  # Remove Xdebug for a huge performance increase:
    5151  if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then
    5252    phpenv config-rm xdebug.ini
    5353  else
    5454    echo "xdebug.ini does not exist"
    5555  fi
    5656- |
     57  # Force the MySQL extension for PHP 5.2
     58  if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]]; then
     59    echo "define( 'WP_USE_EXT_MYSQL', true );" >> wp-tests-config.php
     60  fi
     61- |
    5762  # Export Composer's global bin dir to PATH, but not on PHP 5.2:
    5863  if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
    5964    composer config --list --global
    6065    export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
    6166  fi
    6267- |
    6368  # Install the specified version of PHPUnit depending on the PHP version:
    6469  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    6570    case "$TRAVIS_PHP_VERSION" in
    6671      7.2|7.1|7.0|nightly)
    6772        echo "Using PHPUnit 6.x"
    6873        composer global require "phpunit/phpunit:^6"
    6974        ;;
    7075      5.6|5.5|5.4|5.3)
    7176        echo "Using PHPUnit 4.x"