Skip to content
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

Merged
merged 7 commits into from
Jan 17, 2018
Merged

Conversation

stood
Copy link
Member

@stood stood commented Dec 15, 2017

No description provided.

@stood stood changed the title Add support sf4 [WIP] Add support sf4 Dec 15, 2017
@sanpii sanpii mentioned this pull request Dec 15, 2017
5 tasks
@mvrhov
Copy link
Contributor

mvrhov commented Dec 16, 2017

My PR opened 8 moths ago should be merged first, and then this one rebased on top of it.

@EvKoh
Copy link

EvKoh commented Dec 21, 2017

+1 for this PR !!!

@stood
Copy link
Member Author

stood commented Dec 30, 2017

@chanmix51 can you tag CLI plz for support 4.0 ?

@sanpii
Copy link
Member

sanpii commented Jan 15, 2018

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 @upper2lts tagged tests.

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

@sanpii sanpii Jan 16, 2018

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"

@sanpii sanpii force-pushed the feature-add-support-sf4 branch 3 times, most recently from 8a1a2a2 to cc45487 Compare January 17, 2018 12:24
@sanpii sanpii merged commit ef1bcb1 into pomm-project:master Jan 17, 2018
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.

4 participants