Skip to content

Commit

Permalink
Open Yaml component version requirement, test versions on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Way committed Aug 24, 2016
1 parent 5da0b26 commit 277c5a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,33 @@ php:

matrix:
fast_finish: true
include:
- php: '7.0'
env: YAML_VERSION="~2.3.0"
- php: '7.0'
env: YAML_VERSION="~2.7.0"
- php: '7.0'
env: YAML_VERSION="~3.0.0"
- php: '7.0'
env: YAML_VERSION="~3.1.0"
- php: '7.0'
env: YAML_VERSION="~3.2.0@dev"
allow_failures:
- php: nightly
- env: YAML_VERSION="~3.2.0@dev"

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

before_install:
# Don't run with xdebug, and don't error when xdebug isn't installed
- |
phpenv config-rm xdebug.ini || true
if [ "$YAML_VERSION" != "" ]; then
composer require "symfony/yaml:${YAML_VERSION}" --no-update
fi
install: composer update --prefer-dist --no-interaction

script: ./vendor/bin/phpunit -c phpunit.xml.dist
script: ./vendor/bin/phpunit --stop-on-failure --verbose
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": "^5.6||^7.0",
"symfony/yaml": "^2.7||^3.0",
"symfony/yaml": "^2.3||^3.0",
"doctrine/common": "^2.6",
"jms/metadata": "^1.5"
},
Expand Down

0 comments on commit 277c5a9

Please sign in to comment.