Make WordPress Core


Ignore:
Timestamp:
10/28/2020 11:15:07 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 reintroduces [49358] with a modification to the .travis.yml file to avoid an issue with dotenv-expand being unable to expand variables into process.env only on Travis.

The LOCAL_PHPUNIT environment variabl 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.
See #50042.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docker-compose.yml

    r49360 r49362  
    9797  ##
    9898  phpunit:
    99     image: wordpressdevelop/phpunit:${LOCAL_PHP-latest}
     99    image: wordpressdevelop/phpunit:${LOCAL_PHPUNIT-latest}
    100100
    101101    networks:
Note: See TracChangeset for help on using the changeset viewer.