Ticket #42811: 42811.diff
File 42811.diff, 1.5 KB (added by , 7 years ago) |
---|
-
.travis.yml
before_install: 42 42 fi 43 43 - | 44 44 if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then 45 45 cp tests/phpunit/includes/object-cache.php src/wp-content/object-cache.php 46 46 echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini 47 47 fi 48 48 before_script: 49 49 - | 50 50 # Remove Xdebug for a huge performance increase: 51 51 if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then 52 52 phpenv config-rm xdebug.ini 53 53 else 54 54 echo "xdebug.ini does not exist" 55 55 fi 56 56 - | 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 - | 57 62 # Export Composer's global bin dir to PATH, but not on PHP 5.2: 58 63 if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 59 64 composer config --list --global 60 65 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` 61 66 fi 62 67 - | 63 68 # Install the specified version of PHPUnit depending on the PHP version: 64 69 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 65 70 case "$TRAVIS_PHP_VERSION" in 66 71 7.2|7.1|7.0|nightly) 67 72 echo "Using PHPUnit 6.x" 68 73 composer global require "phpunit/phpunit:^6" 69 74 ;; 70 75 5.6|5.5|5.4|5.3) 71 76 echo "Using PHPUnit 4.x"