Skip to content

Commit

Permalink
Merge pull request #592 from schmittjoh/build-fix
Browse files Browse the repository at this point in the history
Change min stability
  • Loading branch information
goetas committed Jul 11, 2017
2 parents d81b06c + ab12c4e commit 067ff25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ php:
- 7.1
- hhvm

env:
global:
- COMPOSER_ROOT_VERSION=2.0.0

sudo: false
dist: trusty

Expand All @@ -22,14 +26,20 @@ matrix:
- php: 5.6
env: SYMFONY_VERSION='3.0'
- php: 7.1
env: SYMFONY_VERSION='~4.0@dev'
env: SYMFONY_VERSION='~4.0'
- php: 5.5
env: 'COMPOSER_FLAGS="--prefer-lowest"'
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'

allow_failures:
- php: 7.1
env: SYMFONY_VERSION='~4.0'


before_script:
- if [ "$SYMFONY_VERSION" = "~4.0" ]; then composer config minimum-stability dev; composer config prefer-stable true; fi
- 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
- composer update ${COMPOSER_FLAGS} --prefer-stable --no-interaction
- composer update ${COMPOSER_FLAGS} --no-interaction

script:
- vendor/bin/phpunit --coverage-clover clover
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^5.5|^7.0",
"php": "^5.4|^7.0",
"jms/serializer": "^1.7",
"phpoption/phpoption": "^1.1.0",
"symfony/framework-bundle": "~2.3|~3.0|~4.0"
Expand All @@ -37,7 +37,6 @@
"symfony/validator": "*",
"symfony/stopwatch": "*"
},
"minimum-stability": "dev",
"suggest": {
"jms/di-extra-bundle": "Required to get lazy loading (de)serialization visitors, ~1.3"
},
Expand Down

0 comments on commit 067ff25

Please sign in to comment.