-
Notifications
You must be signed in to change notification settings - Fork 31
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] Add support sf4 #90
Conversation
My PR opened 8 moths ago should be merged first, and then this one rebased on top of it. |
+1 for this PR !!! |
84c7996
to
afd134a
Compare
@chanmix51 can you tag CLI plz for support 4.0 ? |
Ok, I think I have understood the problem with php5.4 and symfony 3/4 build. PHP 5.4 force symfony to keep in 2.8 version: https://travis-ci.org/pomm-project/pomm-bundle/jobs/323213244#L612 We need a better way to dertermine if we should launch current_version=$(composer show --format=json | jq '.installed[] | select(.name == "symfony/symfony") | .version' | sed 's/^"v\([^"]*\)"/\1/')
sf2 = $(dpkg --compare-versions "$current_version" "lt" "3"; echo $?)
test $sf2 == 0 && ./bin/behat --tags '~@upper2lts' ||./bin/behat |
.travis.yml
Outdated
- test "$SYMFONY_VERSION" -eq 3 && composer require --no-update symfony/lts:^3||true | ||
- cd tests/ | ||
- test "$SYMFONY_VERSION" -eq 2 && composer require --no-update symfony/lts:^2||true | ||
- test "$SYMFONY_VERSION" -eq 3 && composer require --no-update symfony/lts:^3||true |
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.
These lines can probably be merged like:
composer require --no-update "symfony/lts:^$SYMFONY_VERSION"
.travis.yml
Outdated
@@ -36,21 +37,25 @@ before_install: | |||
|
|||
- php -S localhost:8080 -t tests/web &> /dev/null & | |||
- ln -fs parameters.yml.dist tests/app/config/parameters.yml | |||
- test "$SYMFONY_VERSION" -eq 2 && composer require --no-update symfony/lts:^2||true | |||
- test "$SYMFONY_VERSION" -eq 3 && composer require --no-update symfony/lts:^3||true |
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.
These lines can probably be merged like:
composer require --no-update "symfony/lts:^$SYMFONY_VERSION"
.travis.yml
Outdated
- rm -rf vendor/pomm-project/pomm-bundle | ||
- ln -s ../../../ vendor/pomm-project/pomm-bundle | ||
|
||
script: | ||
- ../vendor/bin/phpcs --standard=psr2 --runtime-set ignore_warnings_on_exit true --report=summary ../sources | ||
- ./bin/behat | ||
- test "$SYMFONY_VERSION" -eq 2 && ./bin/behat --tags '~@upper2lts' ||./bin/behat |
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.
A probably more readable version:
./bin/behat --tags "~@upper${current_version}lts"
8a1a2a2
to
cc45487
Compare
cc45487
to
ef1bcb1
Compare
No description provided.