Make WordPress Core

Changeset 40255


Ignore:
Timestamp:
03/09/2017 07:13:25 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test tools: Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.

This avoids fatal errors while the tests remain incompatible with PHPUnit 6, which was recently introduced on Travis.

See #39822, #40086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r40252 r40255  
    5353before_script:
    5454- stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi
     55- export PATH="$HOME/.composer/vendor/bin:$PATH"
     56- |
     57  if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
     58    composer global require "phpunit/phpunit=5.7.*"
     59  else
     60    composer global require "phpunit/phpunit=4.8.*"
     61  fi
    5562- npm install -g npm
    5663- npm install -g grunt-cli
     
    6269- npm --version
    6370- node --version
     71- phpunit --version
    6472script: grunt $WP_TRAVISCI
    6573notifications:
Note: See TracChangeset for help on using the changeset viewer.