[wp-trac] [WordPress Trac] #43558: Add `composer.json` file for development dependencies
WordPress Trac
noreply at wordpress.org
Fri Apr 6 23:32:39 UTC 2018
#43558: Add `composer.json` file for development dependencies
------------------------------+---------------------
Reporter: clarinetlord | Owner: pento
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+---------------------
Comment (by johnbillion):
Replying to [comment:4 netweb]:
> Copying in @GaryJ's ticket:23912#comment:98 for further context:
> > The `.travis.yml` files shows PHPUnit can be used at version 4, 5 or
6, depending on the PHP version available - and that's great, but get it
down in a `composer.json`, and a `composer install` means that the switch
statement can be dropped, and developers working locally can get the right
version too.
A note for anyone who tries to tackle this: The concept of conditional
dependencies does not exist in Composer, which is why this logic is in
`.travis.yml` and why (AFAIK) we can't add PHPUnit as a Composer
dependency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43558#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list