Make WordPress Core


Ignore:
Timestamp:
10/28/2020 11:46:11 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Allow the desired version of PHPUnit to be passed to the local Docker environment.

This introduces the LOCAL_PHPUNIT environment variable, which allows the desired version of PHPUnit to be specified when running the PHP tests within the local Docker environment.

Because support for newer versions of PHPUnit is not backported, some versions of PHP need the ability to run multiple versions of PHPUnit for different branches. This adds the flexibility needed to use the Docker environment within those older branches to run the PHP tests.

Props johnbillion, SergeyBiryukov.
Merges [49362] to the 5.4 branch.
See #50042.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/.travis.yml

    r47460 r49364  
    2727matrix:
    2828  include:
    29   - env: WP_TRAVISCI=test:e2e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
     29  - env: WP_TRAVISCI=test:e2e LOCAL_PHPUNIT=7.4-fpm PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
    3030    name: E2E Tests
    3131  - env: WP_TRAVISCI=lint:php COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false
     
    3535  - env: WP_TRAVISCI=test:compat COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false
    3636    name: "PHP Compatibility Check"
    37   - env: LOCAL_PHP=7.4-fpm WP_TRAVISCI=test:php
     37  - env: LOCAL_PHP=7.4-fpm LOCAL_PHPUNIT=7.4-fpm WP_TRAVISCI=test:php
    3838    name: "PHPUnit Tests: PHP 7.4"
    39   - env: LOCAL_PHP=7.3-fpm WP_TRAVISCI=test:php
     39  - env: LOCAL_PHP=7.3-fpm LOCAL_PHPUNIT=7.3-fpm WP_TRAVISCI=test:php
    4040    name: "PHPUnit Tests: PHP 7.3"
    41   - env: LOCAL_PHP=7.3-fpm LOCAL_PHP_MEMCACHED=true WP_TRAVISCI=test:php
     41  - env: LOCAL_PHP=7.3-fpm LOCAL_PHPUNIT=7.3-fpm LOCAL_PHP_MEMCACHED=true WP_TRAVISCI=test:php
    4242    name: "PHPUnit Tests: PHP 7.3 with Memcached"
    43   - env: LOCAL_PHP=7.2-fpm WP_TRAVISCI=test:php
     43  - env: LOCAL_PHP=7.2-fpm LOCAL_PHPUNIT=7.2-fpm WP_TRAVISCI=test:php
    4444    name: "PHPUnit Tests: PHP 7.2"
    45   - env: LOCAL_PHP=7.1-fpm WP_TRAVISCI=test:php
     45  - env: LOCAL_PHP=7.1-fpm LOCAL_PHPUNIT=7.1-fpm WP_TRAVISCI=test:php
    4646    name: "PHPUnit Tests: PHP 7.1"
    47   - env: LOCAL_PHP=7.0-fpm WP_TEST_REPORTER=true WP_TRAVISCI=test:php
     47  - env: LOCAL_PHP=7.0-fpm LOCAL_PHPUNIT=7.0-fpm WP_TEST_REPORTER=true WP_TRAVISCI=test:php
    4848    name: "PHPUnit Tests: PHP 7.0"
    49   - env: LOCAL_PHP=5.6-fpm WP_TRAVISCI=test:php
     49  - env: LOCAL_PHP=5.6-fpm LOCAL_PHPUNIT=5.6-fpm WP_TRAVISCI=test:php
    5050    name: "PHPUnit Tests: PHP 5.6"
    51   - env: LOCAL_PHP=8.0-fpm WP_TRAVISCI=test:php
     51  - env: LOCAL_PHP=8.0-fpm LOCAL_PHPUNIT=8.0-fpm WP_TRAVISCI=test:php
    5252    name: "PHPUnit Tests: PHP 8.0"
    5353  allow_failures:
    5454  - env: WP_TRAVISCI=test:compat COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false
    55   - env: LOCAL_PHP=8.0-fpm WP_TRAVISCI=test:php
     55  - env: LOCAL_PHP=8.0-fpm LOCAL_PHPUNIT=8.0-fpm WP_TRAVISCI=test:php
    5656  fast_finish: true
    5757
Note: See TracChangeset for help on using the changeset viewer.