magento / magento-cloud

Magento Cloud
Open Software License 3.0
207 stars 237 forks source link

How to install require-dev modules from magento2 #404

Closed jordanvector closed 4 years ago

jordanvector commented 5 years ago

How do we install the magento testing framework with magento cloud? the only reference that I have seen in the docs is to switch the magento2 repo to the develop branch, but how do we do that with magento cloud?

I guess we could manually go pull those requirements from the magento2 repo.

melonmonster commented 4 years ago

@jordanvector At the moment, you either need to install the all dependencies manually ( see here as a reference. Note: I have to update this PR, but the basic idea is there... you need to do it all manually ), or install the various dependencies as global composer requirements on the desired, non-Cloud, environment; or install the dependencies as phar files ( again, on the non-Cloud environment ).

gamort commented 4 years ago

Or you change your build hooks. Instead of build: | set -e php ./vendor/bin/ece-tools build:generate php ./vendor/bin/ece-tools build:transfer

Use build: | set -e composer install php ./vendor/bin/ece-tools build:generate php ./vendor/bin/ece-tools build:transfer

That will install all the "dev" extensions which did not get installed with the first "composer install --no-dev" BEFORE anything else is executed. And it will skip everything that was already installed.