Add CI tests if PR is installable with Symfony and Laravel
andig opened this issue · comments
There is already something for this in travis from what I can see https://github.com/php-pm/php-pm-httpkernel/blob/master/.travis.yml#L20
Is this just a matter of adding
composer create-project laravel/laravel blog
and
composer create-project symfony/skeleton blog
in the script section in travis.yml?
Noticed the need during php-pm/php-pm#431.
Is this just a matter of adding...
The tricky part is installing the current PR into the generated framework project. Only approach I could find was fiddling with local composer repositories (https://getcomposer.org/doc/05-repositories.md#path)?
Leaving Travis aside, what are the steps to reproduce those issues from scratch?
- Create Symfony/Laravel project
- cd to created project folder
- composer require php-pm/httpkernel-adapter (with some fiddling with composer repos to ensure this pulls the PR instead of the live version)
Are these the correct steps to test?
Actually now that I think of it, can't we just replace the line in travis.yml:
composer require --dev "symfony/symfony" "laravel/framework" "drupal/drupal"
with:
composer require --dev "symfony/framework-standard-edition" "laravel/laravel" "drupal/drupal"
This will widen the scope of the dependencies to what the actual frameworks install and should catch those conflicts.
Edit: To be more correct we should split this line to install laravel, symfony and drupal separately, since each framework may install conflicting dependencies with each other.