Changeset 40277 for branches/4.3/.travis.yml
- Timestamp:
- 03/11/2017 02:43:29 AM (8 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/trunk merged: 40255,40257-40259,40269,40271
- Property svn:mergeinfo changed
-
branches/4.3/.travis.yml
r40229 r40277 36 36 before_script: 37 37 - | 38 stable='^[0-9\.]+$'; 38 # Remove Xdebug for a huge performance increase, but not from nightly or hhvm: 39 stable='^[0-9\.]+$' 39 40 if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then 40 41 phpenv config-rm xdebug.ini 41 42 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 43 74 - npm install -g grunt-cli 44 75 - npm install 45 76 - 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 46 90 script: grunt $WP_TRAVISCI 47 91 notifications: 48 92 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.