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
Rely on own phpunit, not one from CI service #1995
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ | |
"sebastian/diff": "~1.1" | ||
}, | ||
"require-dev": { | ||
"satooshi/php-coveralls": "0.7.*@dev" | ||
"phpunit/phpunit": "^4.5|^5", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👎 If we are able to not make it dependents, don't do it. This will install a lot of dependencies, making composer longer to resolve. Plus, all developer does not work with vendor/bin/phpunit. What about directly download the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't like fetching some deps by Composer and some not. You don't like it? Cool. You are not enforced to download dev deps. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
As you want but IMHO, it's more a tool than a "dependency".
Not really true for all projects. Some can require dev packages other than phpunit and we can select which one we want to install. By installing with composer, you get dependencies described by phpunit, not locked by So this is not only a matter of taste for me. 😉
Well, if you not support it, tests will fail. :-) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Or simply rely on the last stable version of PHPUnit. 😉
Are you talking about the risk to get PHPUnit not working because of a sub-dependency update? Not such an edge case as you think. 😉 Anyway, at least I have an answer. :-) |
||
"satooshi/php-coveralls": "^0.7.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, you can get the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disclaimer: I'm one of those who release php-coveralls There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh OK. 👍 And then? Don't you recommend to use I'm curious to know why. 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use whatever you prefer ;) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because the dependencies (and conflicts) are not managed using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SpacePossum This could be indeed an issue. But could be. This is why I said on #1995 (comment):
BTW, a WIP is here concerning this kind of issue: sebastianbergmann/phpunit#2015 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SpacePossum BTW, concerning your ref, this is unrelated. Related issue: sebastianbergmann/phpunit#2219 |
||
}, | ||
"autoload": { | ||
"psr-4": { "Symfony\\CS\\": "Symfony/CS/" } | ||
|
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.
This actually ends up slower surely? It takes just as long to install this globally as it does to install the rest.
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.
You mean about the time to insstall this library?
Dependencies for this one is very light, it should not be a problem.
@keradus I would ever say that the
travis_retry
should not be here.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 see no reason to drop it.
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.
travis_retry
is good for long with no output jobs.This command would not take more than 10 minutes to execute.
Plus,
travis_retry
drop the original output of the command, harder to read.This is as you want, but I suggest you to remove this. 👍