Skip to content

Commit 277c5a9

Browse files
author
Jeff Way
committed
Open Yaml component version requirement, test versions on Travis
1 parent 5da0b26 commit 277c5a9

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.travis.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,33 @@ php:
88

99
matrix:
1010
fast_finish: true
11+
include:
12+
- php: '7.0'
13+
env: YAML_VERSION="~2.3.0"
14+
- php: '7.0'
15+
env: YAML_VERSION="~2.7.0"
16+
- php: '7.0'
17+
env: YAML_VERSION="~3.0.0"
18+
- php: '7.0'
19+
env: YAML_VERSION="~3.1.0"
20+
- php: '7.0'
21+
env: YAML_VERSION="~3.2.0@dev"
1122
allow_failures:
1223
- php: nightly
24+
- env: YAML_VERSION="~3.2.0@dev"
1325

1426
cache:
1527
directories:
16-
- vendor
28+
- $HOME/.composer/cache/files
29+
30+
before_install:
31+
# Don't run with xdebug, and don't error when xdebug isn't installed
32+
- |
33+
phpenv config-rm xdebug.ini || true
34+
if [ "$YAML_VERSION" != "" ]; then
35+
composer require "symfony/yaml:${YAML_VERSION}" --no-update
36+
fi
1737
1838
install: composer update --prefer-dist --no-interaction
1939

20-
script: ./vendor/bin/phpunit -c phpunit.xml.dist
40+
script: ./vendor/bin/phpunit --stop-on-failure --verbose

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": "^5.6||^7.0",
15-
"symfony/yaml": "^2.7||^3.0",
15+
"symfony/yaml": "^2.3||^3.0",
1616
"doctrine/common": "^2.6",
1717
"jms/metadata": "^1.5"
1818
},

0 commit comments

Comments
 (0)