Changeset 40274
- Timestamp:
- 03/11/2017 12:13:53 AM (8 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/trunk merged: 40269,40271
- Property svn:mergeinfo changed
-
branches/4.5/.travis.yml
r40266 r40274 6 6 matrix: 7 7 include: 8 - php: 5.58 - php: 7.0 9 9 env: WP_TRAVISCI=travis:js 10 10 - php: 5.2 … … 49 49 before_script: 50 50 - | 51 # Remove Xdebug for a huge performance increase, but not from nightly or hhvm: 51 52 stable='^[0-9\.]+$' 52 53 if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then 53 54 phpenv config-rm xdebug.ini 54 55 fi 55 - export PATH="$HOME/.composer/vendor/bin:$PATH"56 56 - | 57 if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then 58 composer global require "phpunit/phpunit=5.7.*" 59 elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 60 composer global require "phpunit/phpunit=4.8.*" 57 # Export Composer's global bin dir to PATH, but not on PHP 5.2: 58 if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 59 composer config --list --global 60 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` 61 fi 62 - | 63 # Install the specified version of PHPUnit depending on the PHP version: 64 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 65 case "$TRAVIS_PHP_VERSION" in 66 7.1|7.0|hhvm|nightly) 67 echo "Using PHPUnit 5.7" 68 composer global require "phpunit/phpunit=5.7.*" 69 ;; 70 5.6|5.5|5.4|5.3) 71 echo "Using PHPUnit 4.8" 72 composer global require "phpunit/phpunit=4.8.*" 73 ;; 74 5.2) 75 # Do nothing, use default PHPUnit 3.6.x 76 echo "Using default PHPUnit, hopefully 3.6" 77 ;; 78 *) 79 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" 80 exit 1 81 ;; 82 esac 61 83 fi 62 84 - npm --version … … 69 91 - phpenv versions 70 92 - php --version 71 - php -m 93 - | 94 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 95 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 96 php -m 97 fi 72 98 - npm --version 73 99 - node --version 100 - which phpunit 74 101 - phpunit --version 75 102 - curl --version
Note: See TracChangeset
for help on using the changeset viewer.