Skip to content

Commit

Permalink
Update dependencies and run tests for SF4 (#153)
Browse files Browse the repository at this point in the history
* #SymfonyConHackday2017

* added explicit stability level for php 7.1

* fix added explicit stability level for php 7.1

* custom minimum-stability config moved to the before_install section

* enabled version > 2 for jms/serializer-bundle

* added a newer version of jms serializer

* added version 5.7  version of phpunit
  • Loading branch information
kosdfol authored and rh389 committed Dec 4, 2017
1 parent d5213c6 commit ab20b55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ matrix:
env: SYMFONY_VERSION=3.0.x
- php: 7.0
env: SYMFONY_VERSION=3.1.x
- php: 7.1
env: SYMFONY_VERSION=4.0.x stability=beta

before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo 'memory_limit=-1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:$SYMFONY_VERSION; fi
- if [ "$stability" != "" ]; then composer config minimum-stability $stability; fi

install:
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction; else composer update --prefer-dist --no-interaction; fi;
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"require": {
"php": ">=5.3.3",
"giggsey/libphonenumber-for-php": "~5.7|~6.0|~7.0|~8.0",
"symfony/framework-bundle": "~2.1|~3.0"
"symfony/framework-bundle": "~2.1|~3.0|^4.0"
},
"require-dev": {
"doctrine/doctrine-bundle": "~1.0",
"jms/serializer-bundle": "~0.11|~1.0",
"phpunit/phpunit": "~4.0",
"symfony/form": "~2.3|~3.0",
"symfony/serializer": "~2.7|~3.1",
"symfony/templating": "~2.1|~3.0",
"symfony/twig-bundle": "~2.1|~3.0",
"symfony/validator": "~2.1|~3.0"
"jms/serializer-bundle": "~0.11|~1.0|~2.0",
"phpunit/phpunit": "~4.0|^5.7",
"symfony/form": "~2.3|~3.0|^4.0",
"symfony/serializer": "~2.7|~3.1|^4.0",
"symfony/templating": "~2.1|~3.0|^4.0",
"symfony/twig-bundle": "~2.1|~3.0|^4.0",
"symfony/validator": "~2.1|~3.0|^4.0"
},
"conflict": {
"twig/twig": "<1.12.0"
Expand Down

0 comments on commit ab20b55

Please sign in to comment.