Make WordPress Core

Changeset 40261


Ignore:
Timestamp:
03/09/2017 10:05:04 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.6 branch.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6/.travis.yml

    r40226 r40261  
    5353before_script:
    5454- |
    55   stable='^[0-9\.]+$';
     55  stable='^[0-9\.]+$'
    5656  if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
    57       phpenv config-rm xdebug.ini
     57    phpenv config-rm xdebug.ini
    5858  fi
    59 - npm install -g npm
     59- export PATH="$HOME/.composer/vendor/bin:$PATH"
     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.*"
     65  fi
     66- npm --version
     67- node --version
     68- nvm install 6.9.1
    6069- npm install -g grunt-cli
    6170- npm install
     
    6473- phpenv versions
    6574- php --version
     75- php -m
    6676- npm --version
    6777- node --version
     78- phpunit --version
     79- curl --version
     80- grunt --version
     81- git --version
     82- svn --version
    6883script: grunt $WP_TRAVISCI
    6984notifications:
Note: See TracChangeset for help on using the changeset viewer.