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

How to install require-dev modules from magento2 #404

Closed
jordanvector opened this issue Oct 9, 2019 · 2 comments
Closed

How to install require-dev modules from magento2 #404

jordanvector opened this issue Oct 9, 2019 · 2 comments

Comments

@jordanvector
Copy link

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
Copy link

@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
Copy link

gamort commented Apr 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants