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

Fixes #648: Allow Symfony 4 components in composer.json. #651

Merged
merged 4 commits into from
Dec 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,32 @@ branches:
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

matrix:
fast_finish: true
include:
- php: 7.2
env: 'SCENARIO=symfony4 HIGHEST_LOWEST="update"'
- php: 7.1
env: dependencies=highest DO_POST_BUILD_ACTIONS=1
env: 'SCENARIO=symfony4'
- php: 7.0.11
env: 'HIGHEST_LOWEST="update"'
- php: 7.0.11
- php: 5.6
- php: 5.5
env: dependencies=lowest
- php: 5.5
env: 'SCENARIO=symfony2 HIGHEST_LOWEST="update --prefer-lowest'

sudo: false

cache:
directories:
- vendor
- $HOME/.composer/cache

before_script:
# Do highest/lowest testing by installing dependencies per the 'dependencies' setting
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-dist --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
install:
- 'composer scenario "${SCENARIO}" "${HIGHEST_LOWEST-install}"'

script:
- ./robo test --coverage
- ./robo sniff -n

- composer test

after_success:
- travis_retry php vendor/bin/coveralls -v
Expand Down
48 changes: 28 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
}
],
"autoload":{
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"psr-4":{
"Robo\\":"src"
}
Expand All @@ -27,39 +24,50 @@
"league/container": "^2.2",
"consolidation/log": "~1",
"consolidation/config": "^1.0.1",
"consolidation/annotated-command": "^2.8.1",
"consolidation/output-formatters": "^3.1.5",
"symfony/finder": "~2.5|~3.0",
"symfony/console": "~2.8|~3.0",
"symfony/process": "~2.5|~3.0",
"symfony/filesystem": "~2.5|~3.0",
"symfony/event-dispatcher": "~2.5|~3.0"
"consolidation/annotated-command": "^2.8.2",
"consolidation/output-formatters": "^3.1.13",
"grasmash/yaml-expander": "^1.3",
"symfony/finder": "^2.5|^3|^4",
"symfony/console": "^2.8|^3|^4",
"symfony/process": "^2.5|^3|^4",
"symfony/filesystem": "^2.5|^3|^4",
"symfony/event-dispatcher": "^2.5|^3|^4"
},
"require-dev": {
"patchwork/jsqueeze": "~2",
"henrikbjorn/lurker": "~1",
"natxet/CssMin": "3.0.4",
"pear/archive_tar": "^1.4.2",
"codeception/base": "^2.2.6",
"codeception/base": "^2.3.7",
"codeception/verify": "^0.3.2",
"codeception/aspect-mock": "~1",
"satooshi/php-coveralls": "~1",
"codeception/aspect-mock": "^1|^2.1.1",
"greg-1-anderson/composer-test-scenarios": "^1",
"satooshi/php-coveralls": "^2",
"phpunit/php-code-coverage": "~2|~4",
"squizlabs/php_codesniffer": "^2.8"
},
"scripts": {
"pre-install-cmd": [
"Robo\\composer\\ScriptHandler::checkDependencies"
],
"cs": "./robo sniff",
"test": "./robo test"
"unit": "./robo test",
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"test": [
"@lint",
"@unit",
"@cs"
],
"scenario": "scenarios/install",
"post-update-cmd": [
"create-scenario symfony4 'symfony/console:^4.0' --platform-php '7.1.3'",
"create-scenario symfony2 'symfony/console:^2.8' --no-lockfile"
]
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "5.6"
"php": "5.5.9"
}
},
"extra": {
Expand Down
Loading