Changeset 40273 for branches/4.6
- Timestamp:
- 03/11/2017 12:09:28 AM (8 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/trunk merged: 40269,40271
- Property svn:mergeinfo changed
-
branches/4.6/.travis.yml
r40261 r40273 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 … … 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 fi 66 - | 67 # Install the specified version of PHPUnit depending on the PHP version: 68 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 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 65 87 fi 66 88 - npm --version … … 73 95 - phpenv versions 74 96 - php --version 75 - php -m 97 - | 98 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 99 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 100 php -m 101 fi 76 102 - npm --version 77 103 - node --version 104 - which phpunit 78 105 - phpunit --version 79 106 - curl --version
Note: See TracChangeset
for help on using the changeset viewer.