Make WordPress Core

Changeset 40271


Ignore:
Timestamp:
03/10/2017 11:56:07 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test tools: Don't install PHPUnit on the travis:js builds. Saves a couple of minutes of build time.

See #40100

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r40269 r40271  
    6666- |
    6767  # Install the specified version of PHPUnit depending on the PHP version:
    68   case "$TRAVIS_PHP_VERSION" in
    69     7.1|7.0|hhvm|nightly)
    70       echo "Using PHPUnit 5.7"
    71       composer global require "phpunit/phpunit=5.7.*"
    72       ;;
    73     5.6|5.5|5.4|5.3)
    74       echo "Using PHPUnit 4.8"
    75       composer global require "phpunit/phpunit=4.8.*"
    76       ;;
    77     5.2)
    78       # Do nothing, use default PHPUnit 3.6.x
    79       echo "Using default PHPUnit, hopefully 3.6"
    80       ;;
    81     *)
    82       echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
    83       exit 1
    84       ;;
    85   esac
     68  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
     69    case "$TRAVIS_PHP_VERSION" in
     70      7.1|7.0|hhvm|nightly)
     71        echo "Using PHPUnit 5.7"
     72        composer global require "phpunit/phpunit=5.7.*"
     73        ;;
     74      5.6|5.5|5.4|5.3)
     75        echo "Using PHPUnit 4.8"
     76        composer global require "phpunit/phpunit=4.8.*"
     77        ;;
     78      5.2)
     79        # Do nothing, use default PHPUnit 3.6.x
     80        echo "Using default PHPUnit, hopefully 3.6"
     81        ;;
     82      *)
     83        echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
     84        exit 1
     85        ;;
     86    esac
     87  fi
    8688- npm --version
    8789- node --version
Note: See TracChangeset for help on using the changeset viewer.