-
Notifications
You must be signed in to change notification settings - Fork 1
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
[WIP] improvements to use it #1
base: master
Are you sure you want to change the base?
Conversation
@dbu that is 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.
great work, looks good to me! i commented a few things.
|
||
.PHONY: test docs |
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 should stay in: https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
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.
we do not have docs to test in our bundles/components.
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, but unless i missed something, you completely removed .PHONY
. this should list all meta targets that are not files (which is every target for us, as we are not compiling code with the makefile)
do a touch test && make test
on the commandline to see the effect of having or not having phony.
project/src/Resources/meta/LICENSE
Outdated
@@ -0,0 +1,23 @@ | |||
SeoBundle |
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 should be a placeholder or the line be deleted.
const GITHUB_EMAIL = '[email protected]'; | ||
const PACKAGIST_GROUP = 'sonata-project'; | ||
const GITHUB_GROUP = 'symfony-cmf'; | ||
const GITHUB_USER = 'electricmaxxx'; |
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.
would we have to create a specific user for the dev-kit?
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.
Yes, and i would like to put those parameters in a .env
(with a checked in .env.dist
to keep this application reusable and maybe push something back to sonata.
…figured php version
} | ||
|
||
$branchConfig = $projectConfig['branches'][$currentBranch]; | ||
$composerAsJson['require']['php'] = $this->evaluateVersionString($branchConfig['php']); |
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.
@dbu i crate php version constraint, and the symfony version constraints in 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.
that is quite cool!
$this->evaluateVersionString($branchConfig['versions']['symfony']), | ||
'^2.8 | ' | ||
); | ||
} elseif (preg_match('/symfony\//', $package) && 'friendsofsymfony/jsrouting-bundle' !== $package) { |
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.
@dbu you are better in regex, right? can you give me an regex not to exclude friendsofsymfony/
that ugly way. I should be something that starts with symfony/
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 is working with the parsed json, right? then you could do preg_match('/^symfony\//', $package)
. the caret symbol at the beginning of the expression matches the beginning of the subject.
Support for PHP >= 5.6 for symfony-cmf/testing
This are the first improvements to use it in cmf and to which leads to first dispatch: symfony-cmf/seo-bundle#339