Make WordPress Core

Changeset 40262


Ignore:
Timestamp:
03/09/2017 10:40:38 PM (8 years ago)
Author:
ocean90
Message:

Build/Test Tools: Update .travis.yml to include latest improvements from trunk.

  • Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
  • On Travis CI install and use the node version which is specified in package.json.
  • Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches.

Merge of [40255] and [40257-40259] to the 4.5 branch.

Props netweb, johnbillion.
See #35105, #39822, #40086.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/.travis.yml

    r40227 r40262  
    4949before_script:
    5050- |
    51   stable='^[0-9\.]+$';
     51  stable='^[0-9\.]+$'
    5252  if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
    53       phpenv config-rm xdebug.ini
     53    phpenv config-rm xdebug.ini
    5454  fi
    55 - npm install -g npm
     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  elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     60    composer global require "phpunit/phpunit=4.8.*"
     61  fi
     62- npm --version
     63- node --version
     64- nvm install 6.9.1
    5665- npm install -g grunt-cli
    5766- npm install
     67- npm prune
     68- mysql --version
     69- phpenv versions
    5870- php --version
     71- php -m
    5972- npm --version
    6073- node --version
     74- phpunit --version
     75- curl --version
     76- grunt --version
     77- git --version
     78- svn --version
    6179script: grunt $WP_TRAVISCI
    6280notifications:
Note: See TracChangeset for help on using the changeset viewer.