8000 use phar distribution of php-cs-fixer by mente · Pull Request #68 · pact-foundation/pact-php · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@mente
Copy link
Contributor
@mente mente commented May 2, 2018

Another step towards symfony 2.x support. php-cs-fixer has dependencies on symfony 3.x . By using phar instead dependencies are not being leaked to the overall library. This PR includes tm/tooly-composer-script which actually just installs the same phar in the end of the composer command.

I've also updated composer scripts to use local phpunit and php-cs-fixer instead of global one

PS It looks like composer fix haven't been run for a while, but I leave it up to maintainers to define/revisit CS rules and CI pipeline for it

@mente
Copy link
Contributor Author
mente commented May 2, 2018

appveyor is failing but on the other side it duplicates travis functionality, it's composer test in the end. What's point of appveyor then? Maybe it's worth removing?

@mente
Copy link
Contributor Author
mente commented May 2, 2018

Or should I invest into fixing the problem?

@mente mente force-pushed the feature-cs-fixer-phar branch from d3fa39c to 4061c1c Compare May 2, 2018 16:16
@mente
Copy link
Contributor Author
mente commented May 2, 2018

My fault, appveyor is for windows and vendor/bin is automatically included in $PATH. Reverted and rebased

@nbrink91
Copy link
Collaborator
nbrink91 commented May 3, 2018

I'm going to go ahead and hold out on merging this PR in until we get Symfony 2 working as expected in a feature branch. I added a PHPCS lint to the Travis CI build that will now fail the build if the syntax errors haven't been fixed.

Another step towards symfony 2.x support. `php-cs-fixer` has dependencies on symfony 3.x . By using phar instead dependencies are not being leaked to the overall library. This PR includes [tm/tooly-composer-script](https://github.com/tommy-muehle/tooly-composer-script) which actually just installs the same phar in the end of the composer command.

PS It looks like `composer fix` haven't been run for a while, but I leave it up to maintainers to define/revisit CS rules and CI pipeline for it
@mente mente force-pushed the feature-cs-fixer-phar branch from 4061c1c to c7d68de Compare May 7, 2018 21:03
@mattermack mattermack merged commit c7d68de into pact-foundation:master May 8, 2018
@mente mente deleted the feature-cs-fixer-phar branch May 8, 2018 21:05
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

Successfully merging this pull request may close these issues.

3 participants

0