Changeset 40269
- Timestamp:
- 03/10/2017 10:57:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r40267 r40269 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." ]]; then62 composer global require "phpunit/phpunit=5.7.*"63 elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then64 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 65 fi 66 - | 67 # Install the specified version of PHPUnit depending on the PHP version: 68 case "$TRAVIS_PHP_VERSION" in 69 7.1|7.0|hhvm|nightly) 70 echo "Using PHPUnit 5.7" 71 composer global require "phpunit/phpunit=5.7.*" 72 ;; 73 5.6|5.5|5.4|5.3) 74 echo "Using PHPUnit 4.8" 75 composer global require "phpunit/phpunit=4.8.*" 76 ;; 77 5.2) 78 # Do nothing, use default PHPUnit 3.6.x 79 echo "Using default PHPUnit, hopefully 3.6" 80 ;; 81 *) 82 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" 83 exit 1 84 ;; 85 esac 66 86 - npm --version 67 87 - node --version … … 74 94 - php --version 75 95 - | 96 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 76 97 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 77 98 php -m … … 79 100 - npm --version 80 101 - node --version 102 - which phpunit 81 103 - phpunit --version 82 104 - curl --version
Note: See TracChangeset
for help on using the changeset viewer.