wp-cli / scaffold-package-command

Scaffolds WP-CLI commands with functional tests, full README.md, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requiring wp-cli/wp-cli in composer.json slows down package tests

danielbachhuber opened this issue · comments

In #26, we began adding a require statement to the package's composer.json:

image

The minimum version declaration is also used in wp package install, which will err if the minimum version isn't met.

However, because bin/install-package-tests.sh calls composer install --dev, WP-CLI is unnecessarily installed a second time via Composer:

image
https://travis-ci.org/wp-cli/find-command/jobs/209460745

We should get this fixed, and apply it to all of the packages.

This will be addressed in #89, by using composer require wp-cli/wp-cli as the version of WP-CLI used in tests.