Make WordPress Core

Changeset 40277


Ignore:
Timestamp:
03/11/2017 02:43:29 AM (7 years ago)
Author:
johnbillion
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.
  • Get Travis builds working on HHVM again.
  • In addition, brings the Slack notification settings up to date.

Merges [40255], [40257], [40258], [40259], [40269], and [40271] to the 4.3 branch.

See #35105, #40100, #30755

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/.travis.yml

    r40229 r40277  
    3636before_script:
    3737- |
    38   stable='^[0-9\.]+$';
     38  # Remove Xdebug for a huge performance increase, but not from nightly or hhvm:
     39  stable='^[0-9\.]+$'
    3940  if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
    40       phpenv config-rm xdebug.ini
     41    phpenv config-rm xdebug.ini
    4142  fi
    42 - npm install -g npm
     43- |
     44  # Export Composer's global bin dir to PATH, but not on PHP 5.2:
     45  if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
     46    composer config --list --global
     47    export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
     48  fi
     49- |
     50  # Install the specified version of PHPUnit depending on the PHP version:
     51  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
     52    case "$TRAVIS_PHP_VERSION" in
     53      7.1|7.0|hhvm|nightly)
     54        echo "Using PHPUnit 5.7"
     55        composer global require "phpunit/phpunit=5.7.*"
     56        ;;
     57      5.6|5.5|5.4|5.3)
     58        echo "Using PHPUnit 4.8"
     59        composer global require "phpunit/phpunit=4.8.*"
     60        ;;
     61      5.2)
     62        # Do nothing, use default PHPUnit 3.6.x
     63        echo "Using default PHPUnit, hopefully 3.6"
     64        ;;
     65      *)
     66        echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
     67        exit 1
     68        ;;
     69    esac
     70  fi
     71- npm --version
     72- node --version
     73- nvm install 4.7.2
    4374- npm install -g grunt-cli
    4475- npm install
    4576- php --version
     77- |
     78  # Debug PHP extensions, but not on HHVM because the command hangs indefinitely:
     79  if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then
     80    php -m
     81  fi
     82- npm --version
     83- node --version
     84- which phpunit
     85- phpunit --version
     86- curl --version
     87- grunt --version
     88- git --version
     89- svn --version
    4690script: grunt $WP_TRAVISCI
    4791notifications:
    4892  slack:
    49     secure: "ln2sC0yUOMzGGJ9PR56cxafCO2YSBQtFs0JuoSjvmXN0+jCGbQL781z2osEJ24BEl4o3zMLfiFPgieM7D+VuRObU6TiVFLmbebgoSyW/1Gs+jPNxBXPKOSLE3/4CV8ifyhm5XZr2xT6z8OWC6StHl2nPis4wZ91UHbj6FhlMyFM="
     93    rooms:
     94      secure: WuMCpfgrm0GIdPbYzsGOsakZ5x7QIbEBwD+CPHVXGKbL3ZbqQ+BVcDRnMiwzxjgf1vzg2de0taXCSMGKBxsWce23NZkOnmwPdIB8XOnwDV7T7zylgYD5S7p3gI6gV0l8Y3/gROdXFZap6viC1qRr4E79ow53RKk7E3WyOo7TWqo=
     95    on_start: never
     96    on_failure: always
     97    on_success: change
Note: See TracChangeset for help on using the changeset viewer.