Changeset 40282
- Timestamp:
- 03/11/2017 05:37:36 PM (8 years ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
- Property svn:mergeinfo changed
/trunk merged: 37058,37340,40255,40257-40259,40267,40269,40271
- Property svn:mergeinfo changed
-
branches/4.2/.travis.yml
r40230 r40282 1 1 sudo: false 2 2 language: php 3 cache: 4 directories: 5 - node_modules 3 6 matrix: 4 7 include: … … 36 39 before_script: 37 40 - | 38 stable='^[0-9\.]+$'; 41 # Remove Xdebug for a huge performance increase, but not from nightly or hhvm: 42 stable='^[0-9\.]+$' 39 43 if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then 40 44 phpenv config-rm xdebug.ini 41 45 fi 42 - npm install -g npm 46 - | 47 # Export Composer's global bin dir to PATH, but not on PHP 5.2: 48 if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 49 composer config --list --global 50 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }` 51 fi 52 - | 53 # Install the specified version of PHPUnit depending on the PHP version: 54 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 55 case "$TRAVIS_PHP_VERSION" in 56 7.1|7.0|hhvm|nightly) 57 echo "Using PHPUnit 5.7" 58 composer global require "phpunit/phpunit=5.7.*" 59 ;; 60 5.6|5.5|5.4|5.3) 61 echo "Using PHPUnit 4.8" 62 composer global require "phpunit/phpunit=4.8.*" 63 ;; 64 5.2) 65 # Do nothing, use default PHPUnit 3.6.x 66 echo "Using default PHPUnit, hopefully 3.6" 67 ;; 68 *) 69 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" 70 exit 1 71 ;; 72 esac 73 fi 74 - npm --version 75 - node --version 76 - nvm install 4.7.2 43 77 - npm install -g grunt-cli 44 78 - npm install 79 - npm prune 45 80 - php --version 81 - | 82 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 83 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 84 php -m 85 fi 86 - npm --version 87 - node --version 88 - which phpunit 89 - phpunit --version 90 - curl --version 91 - grunt --version 92 - git --version 93 - svn --version 46 94 script: grunt $WP_TRAVISCI 47 95 notifications: 48 96 slack: 49 secure: "ln2sC0yUOMzGGJ9PR56cxafCO2YSBQtFs0JuoSjvmXN0+jCGbQL781z2osEJ24BEl4o3zMLfiFPgieM7D+VuRObU6TiVFLmbebgoSyW/1Gs+jPNxBXPKOSLE3/4CV8ifyhm5XZr2xT6z8OWC6StHl2nPis4wZ91UHbj6FhlMyFM=" 97 rooms: 98 secure: WuMCpfgrm0GIdPbYzsGOsakZ5x7QIbEBwD+CPHVXGKbL3ZbqQ+BVcDRnMiwzxjgf1vzg2de0taXCSMGKBxsWce23NZkOnmwPdIB8XOnwDV7T7zylgYD5S7p3gI6gV0l8Y3/gROdXFZap6viC1qRr4E79ow53RKk7E3WyOo7TWqo= 99 on_start: never 100 on_failure: always 101 on_success: change
Note: See TracChangeset
for help on using the changeset viewer.