Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0: Composer: set the new requirements for WPCS #1905

Merged
merged 2 commits into from
Jun 30, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 30, 2020

Composer/Travis: change the minimum PHPCS version

Update the minimum required PHPCS version to 3.5.0.

Composer: add PHPCSUtils and PHPCSExtra as dependencies

Composer:

  • Add PHPCSUtils and PHPCSExtra as dependencies.
  • Remove the DealerDirect plugin from require-dev as well as from suggests as it comes with PHPCSUtils/PHPCSExtra automatically and not having it here may prevent conflicts with allowed versions in the future.

Travis:

  • Alias PHPCS 4.x to 3.9.99 to allow testing with the dependencies before PHPCS 4.x is officially supported by them.
  • When testing with PHPCS 4.x, we need --prefer-source as otherwise the test files we use from PHPCS itself won't be included.
    The way I've implemented this uses a new feature which is available since Composer 1.10.0 to selectively download from source.
    This prevents all packages being downloaded from source for the PHPCS 4.x build, which would slow down the build and negate the Travis caching.

Note: the install/upgrade instructions in the Readme and other documentation will be addressed in a separate PR late in the 3.0 cycle, so as not to confuse people using the latest release, while 3.0.0 development is ongoing.

Update the minimum required PHPCS version to `3.5.0`.
@jrfnl jrfnl added this to the 3.0.0 milestone Jun 30, 2020
@jrfnl jrfnl force-pushed the 3.0/update-requirements branch 3 times, most recently from ca60b4c to 8557f4e Compare June 30, 2020 04:59
Composer:
* Add PHPCSUtils and PHPCSExtra as dependencies.
* Remove the DealerDirect plugin from `require-dev` as well as from `suggests` as it comes with PHPCSUtils/PHPCSExtra automatically and not having it here may prevent conflicts with allowed versions in the future.

Travis:
* Alias PHPCS 4.x to `3.9.99` to allow testing with the dependencies before PHPCS 4.x is officially supported by them.
* When testing with PHPCS 4.x, we need `--prefer-source` as otherwise the test files we use from PHPCS itself won't be included.
    The way I've implemented this uses a [new feature](composer/composer#6301) which is available since Composer 1.10.0 to selectively download from source.
    This prevents *all* packages being downloaded from source for the PHPCS `4.x` build, which would slow down the build and negate the Travis caching.

Note: the install/upgrade instructions in the Readme and other documentation will be addressed in a separate PR late in the 3.0 cycle, so as not to confuse people using the latest release, while 3.0.0 development is ongoing.
@jrfnl jrfnl mentioned this pull request Jun 30, 2020
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants