Skip to content

Commit

Permalink
Changing Symfony requirement to ^4 | ^5.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Feb 24, 2020
1 parent e92a500 commit fde1841
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 257 deletions.
27 changes: 12 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
language: php

branches:
# Only test the master branch and SemVer tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

# @see https://pantheon.io/blog/highest-lowest-testing-multiple-symfony-versions
matrix:
fast_finish: true
include:
- php: 7.4
# Resolves to Symfony 5.
env: 'HIGHEST_LOWEST="update"'
- php: 7.3
# Resolves to Symfony 5.
env: 'HIGHEST_LOWEST="update"'
- php: 7.2
env: 'SCENARIO=symfony4 HIGHEST_LOWEST="update"'
- php: 7.1
env: 'SCENARIO=symfony4'
- php: 7.0.11
# Resolves to Symfony 5.
env: 'HIGHEST_LOWEST="update"'
- php: 7.0.11
- php: 5.6
env: 'SCENARIO=symfony2 HIGHEST_LOWEST="update --prefer-lowest'
- php: 7.1
# Resolves to Symfony 4.
env: 'HIGHEST_LOWEST="update --prefer-lowest"'

sudo: false

Expand All @@ -28,7 +25,7 @@ cache:
- "vendor"

install:
- 'composer scenario "${SCENARIO}" "${HIGHEST_LOWEST-install}"'
- 'composer "${HIGHEST_LOWEST-install}" --prefer-dist'

script:
- composer test
Expand Down
16 changes: 3 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"description": "Expands internal property references in a yaml file.",
"type": "library",
"require": {
"php": ">=5.6",
"dflydev/dot-access-data": "^1.1.0",
"grasmash/expander": "^1.0.0",
"symfony/yaml": "^3|^4"
"symfony/yaml": "^4 | ^5"
},
"license": "MIT",
"authors": [
Expand All @@ -23,7 +22,6 @@
"require-dev": {
"phpunit/phpunit": "^5.5.4",
"satooshi/php-coveralls": "^1.0.2|dev-master",
"greg-1-anderson/composer-test-scenarios": "^1",
"squizlabs/php_codesniffer": "^2.7"
},
"scripts": {
Expand All @@ -38,23 +36,15 @@
"@lint",
"@unit",
"@cs"
],
"scenario": "scenarios/install",
"post-update-cmd": [
"create-scenario symfony4 'symfony/console:^4.0'",
"create-scenario symfony2 'symfony/console:^3.0' --platform-php '5.6' --no-lockfile"
]
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "7.1"
}
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
"dev-master": "3.x-dev"
}
}
}
Loading

0 comments on commit fde1841

Please sign in to comment.