-
Notifications
You must be signed in to change notification settings - Fork 378
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
[Post-Processors] Replaced ProcessBuilder with Process and add additional tests #1025
Conversation
The phpunit 5.7 tests are not running, no tests are executed, see https://travis-ci.org/liip/LiipImagineBundle/jobs/316955919 |
@dbu David, do you have an idea how to execute the unit tests with PHPUnit 5.7. |
i played around in #1027 but still tests are not run. (i think the failure is because i try to cat phpunit.xml which does not exist) when i run phpunit locally, tests are executed as expected. (i have to use simple-phpunit, otherwise i get the yaml error because phpunit loads a wrong version of the symfony yaml component) |
can you please rebase this on the 2.0 branch to get the tests to run? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for this refactoring, and the test setup cleanup! this looks good to me, apart from some tweaking and a question.
one thing that would be great, while we are at cleaning up the build matrix, would be to test the minimum build (something like https://github.com/php-http/HttplugBundle/blob/4c4e25d1812b5ba7868b930946236861c81be473/.travis.yml#L25) to be sure our dependencies in composer.json are correct. thats actually not related to the process builder, so best in a separate PR once we merged this.
.travis.yml
Outdated
- php: 7.1 | ||
env: SYMFONY_VERSION=4.0.* | ||
- php: 7.1 | ||
env: SYMFONY_VERSION=3.4.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need to build with symfony 3.4 on more than 1 version of php. 7.2 is enough.
|
||
$stripAll = array_key_exists('strip_all', $options) ? $options['strip_all'] : $this->stripAll; | ||
if ($stripAll) { | ||
$pb->add('--strip-all'); | ||
array_push($processArguments, '--strip-all'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not $processArguments[] = '--strip-all';
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, $processArguments[] = '--strip-all'; makes more sense. I refactored it.
looking at the travis output, i also notice that some of the tests are skipped because of missing flysystem. i think we should have one build where we composer require those dependencies to know that the integration indeed works. (but not add them to composer.json require-dev, otherwise we don't see if other things accidentally depend on flysystem). but again, a task for a separate PR rather than mix it in here. |
I created pull request #1035 to extend the build matrix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks a lot. looks ready to squash and merge to me!
@robfrawley I rebased against the master and now the merge conflicts are resolved. Maybe you have time to review this pr |
… additional tests
@fabianbloching FYI, merging the upstream changes into your commit history creates a fragmented, redundant, and "un-clean" looking commit history. I've already fixed this PR, but in the future please try to rebase and not merge upstream changes. Here is a brief example (assuming your remotes are
If you encounter any merge conflicts (which can occur while your new commits are being replayed over the upstream changes), manually fix the conflicts and then call |
Thanks @fabianbloching! |
@robfrawley Thanks for the detailed briefing. |
Pull request to support Symfony 4.0