Ticket #40100: 40100.diff
File 40100.diff, 2.0 KB (added by , 8 years ago) |
---|
-
.travis.yml
9 9 - WP_TRAVISCI=travis:phpunit 10 10 matrix: 11 11 include: 12 - php: 7 12 - php: 7.0 13 13 env: WP_TRAVISCI=travis:js 14 14 - php: 5.2 15 15 - php: 5.3 … … 52 52 fi 53 53 before_script: 54 54 - | 55 # Remove Xdebug for a huge performance increase, but not from nightly or hhvm: 55 56 stable='^[0-9\.]+$' 56 57 if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then 57 58 phpenv config-rm xdebug.ini 58 59 fi 59 - export PATH="$HOME/.composer/vendor/bin:$PATH"60 60 - | 61 if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then 62 composer global require "phpunit/phpunit=5.7.*" 63 elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 64 composer global require "phpunit/phpunit=4.8.*" 61 # Export Composer's global bin dir to PATH, but not on PHP 5.2: 62 if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 63 composer config --list --global 64 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` 65 echo $PATH 65 66 fi 67 - | 68 # Install the specified version of PHPUnit depending on the PHP version: 69 case "$TRAVIS_PHP_VERSION" in 70 7.1|7.0|hhvm|nightly) 71 echo "Using PHPUnit 5.7" 72 composer global require "phpunit/phpunit=5.7.*" 73 ;; 74 5.6|5.5|5.4|5.3) 75 echo "Using PHPUnit 4.8" 76 composer global require "phpunit/phpunit=4.8.*" 77 ;; 78 5.2) 79 # Do nothing, use default PHPUnit 3.6.x 80 echo "Using default PHPUnit, hopefully 3.6" 81 ;; 82 *) 83 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" 84 exit 1 85 ;; 86 esac 66 87 - npm --version 67 88 - node --version 68 89 - nvm install 6.9.1 … … 73 94 - phpenv versions 74 95 - php --version 75 96 - | 97 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 76 98 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 77 99 php -m 78 100 fi 79 101 - npm --version 80 102 - node --version 103 - which phpunit 81 104 - phpunit --version 82 105 - curl --version 83 106 - grunt --version