-
Notifications
You must be signed in to change notification settings - Fork 5
Update dependency for Symfony 4. #4
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8157dd1
Update dependency for Symfony 4.
584ecfb
Add Symfony 4 to travis build matrix.
a6d3ad2
Add dev flag to Symfony 4 build.
e0f819c
Adding dev-flag should not be necessary as composer.json allows for d…
0deb9cd
Restructure .travis.yml
c8525ca
Add SYMFONY_VERSION to build allowed failed.
0c69bee
Remove unused exclude and refine requirement for 3.x LTS.
670faff
Add missing Symfony version.
92031a3
Separate matrix sections with comments.
e97b447
Make sure we install sf4
Nyholm 588a308
typo
Nyholm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,6 @@ cache: | |
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
env: | ||
global: | ||
- TEST_COMMAND="composer test" | ||
|
@@ -29,19 +22,33 @@ matrix: | |
fast_finish: true | ||
include: | ||
- php: 5.4 | ||
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=2.7.* | ||
env: DEPENDENCIES=minimum COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=2.7.* | ||
- php: 5.5 | ||
- php: 5.6 | ||
- php: 7.0 | ||
- php: 7.1 | ||
env: SYMFONY_VERSION=3.0.* | ||
- php: 7.1 | ||
env: DEPENDENCIES="dev" SYMFONY_VERSION=4.0.* | ||
- php: hhvm | ||
exclude: | ||
- php: 5.4 | ||
env: SYMFONY_VERSION=3.0.* | ||
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. This exclude role does not match any entry from the matrix above. |
||
allow_failures: | ||
- php: 7.1 | ||
env: DEPENDENCIES="dev" SYMFONY_VERSION=4.0.* | ||
|
||
before_install: | ||
- travis_retry composer self-update | ||
- if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi; | ||
- if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi; | ||
|
||
install: | ||
- travis_retry composer require symfony/symfony:${SYMFONY_VERSION} --no-update | ||
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction | ||
|
||
script: | ||
- composer validate --strict --no-check-lock | ||
- $TEST_COMMAND | ||
|
||
after_success: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why
3.0.*
? Didn't you mean3.4.*
instead?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 kept this requirements from the selection above. Something like
env: DEPENDENCIES="symfony/lts:^3"
probably makes more sense?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 would also update the other places where
symfony/symfony
is used by usingsymfony/lts
instead. That way you won't hide bugs related to not installed components outside the CI environment.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 guess best see symfony/symfony-docs#8701 - or lets just make things work here and then sync to that when the recommendation for a perfect .travis.yml has been merged.