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

#153 Allow install with flex by un-requiring symfony/symfony #154

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 10 additions & 13 deletions .travis.yml
@@ -1,10 +1,5 @@
language: php

php:
- 5.6
- 7.0
- 7.1

matrix:
include:
- php: 5.6
Expand All @@ -20,12 +15,15 @@ matrix:
- php: 7.0
env: SYMFONY_VERSION=3.3.*
- php: 7.0
env: SYMFONY_VERSION=3.4.*@beta
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.1
env: SYMFONY_VERSION=4.0.*@beta
allow_failures:
- env: SYMFONY_VERSION=3.4.*@beta
- env: SYMFONY_VERSION=4.0.*@beta
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=3.4.* SYMFONY_DEPRECATIONS_HELPER=weak
- php: 7.2
env: SYMFONY_VERSION=4.0.* SYMFONY_DEPRECATIONS_HELPER=weak

env:
global:
Expand All @@ -41,11 +39,10 @@ before_install:
- if [ "$PHPCS" = "yes" ]; then pear install pear/PHP_CodeSniffer; fi
- if [ "$PHPCS" = "yes" ]; then phpenv rehash; fi
- if [ "$PHPCS" != "yes"]; then composer selfupdate; fi
- if [ "$SYMFONY_VERSION" = "3.4.*@beta" ] || [ "$SYMFONY_VERSION" = "4.0.*@beta" ]; then rm -f phpunit.xml; cp phpunit.sf4.xml.dist phpunit.xml; fi
- if [ "$SYMFONY_VERSION" = "3.2.*" ] || [ "$SYMFONY_VERSION" = "3.3.*" ] || [ "$SYMFONY_VERSION" = "3.4.*@dev" ]; then composer require --no-update twig/twig:~2.0; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi
- if [ "$SYMFONY_VERSION" = "3.4.*" ] || [ "$SYMFONY_VERSION" = "4.0.*" ]; then rm -f phpunit.xml; cp phpunit.sf4.xml.dist phpunit.xml; fi

install: if [ "$PHPCS" != "yes" ]; then composer update --prefer-dist; fi
install: php -d memory_limit=-1 $(phpenv which composer) update --no-suggest --prefer-dist

script:
- if [ "$PHPCS" != "yes" ]; then vendor/bin/phpunit --coverage-text; fi
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Expand Up @@ -21,11 +21,18 @@
},
"require": {
"php": ">=5.3.0",
"symfony/symfony": "~2.2|~3.0|~4.0"
"symfony/framework-bundle": "~2.2|~3.0|~4.0",
"symfony/console": "~2.2|~3.0|~4.0"
},
"require-dev": {
"symfony/phpunit-bridge": "~2.7|~3.0|~4.0",
"phpunit/phpunit": "5.*"
"phpunit/phpunit": "5.*",
"symfony/security-bundle": "~2.2|~3.0|~4.0",
"symfony/translation": "~2.2|~3.0|~4.0",
"symfony/form": "~2.2|~3.0|~4.0",
"symfony/validator": "~2.2|~3.0|~4.0",
"symfony/browser-kit": "~2.2|~3.0|~4.0",
"doctrine/annotations": "~1.0"
},
"suggest": {
"doctrine/doctrine-cache-bundle" : "Allows to store sitemaps in cache"
Expand Down