Skip to content

Commit

Permalink
#153 Allow install with flex by un-requiring symfony/symfony
Browse files Browse the repository at this point in the history
lots of dev dependencies due to the use of a fake symfony application
  • Loading branch information
Benoît Lévêque committed Dec 1, 2017
1 parent 5657258 commit c5fb114
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
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

0 comments on commit c5fb114

Please sign in to comment.