Skip to content

Commit 6b8414c

Browse files
authored
Allow Symfony YAML 3.0 (#40)
* Update composer.json Fixes #35
1 parent aed871a commit 6b8414c

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ matrix:
44
include:
55
# linux tests
66
- php: '7.1'
7+
env: YAML=3.0
8+
- php: '7.1'
9+
env: YAML=4.0
10+
- php: '7.2'
11+
env: YAML=3.0
712
- php: '7.2'
13+
env: YAML=4.0
14+
- php: '7.3'
15+
env: YAML=3.0
816
- php: '7.3'
17+
env: YAML=4.0
918
- php: nightly
19+
env: YAML=4.0
1020
# windows tests
1121
# https://travis-ci.community/t/where-to-contribute-php-support-for-windows/304
1222
- os: windows
@@ -23,14 +33,17 @@ matrix:
2333
#- ls /c/tools/composer
2434
- wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -dextension=/c/tools/php73/ext/php_openssl.dll --
2535
- ls
26-
install: php -dextension=/c/tools/php73/ext/php_openssl.dll -dextension=/c/tools/php73/ext/php_mbstring.dll composer.phar install --prefer-dist --no-interaction
36+
install:
37+
- php -dextension=/c/tools/php73/ext/php_openssl.dll -dextension=/c/tools/php73/ext/php_mbstring.dll composer.phar install --prefer-dist --no-interaction
2738
script: php -dextension=/c/tools/php73/ext/php_openssl.dll -dextension=/c/tools/php73/ext/php_mbstring.dll vendor/phpunit/phpunit/phpunit
2839

2940
# allow php nightly to fail until https://travis-ci.community/t/php-nightly-now-requires-oniguruma/2237 is fixed
3041
allow_failures:
3142
- php: nightly
3243

33-
install: make install
44+
install:
45+
- make install
46+
- composer require symfony/yaml:"^${YAML}" --prefer-dist --no-interaction
3447
script:
3548
- make lint
3649
- make test

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require": {
2121
"php": ">=7.1.0",
2222
"ext-json": "*",
23-
"symfony/yaml": "^4.0",
23+
"symfony/yaml": "^3.0 | ^4.0",
2424
"justinrainbow/json-schema": "^5.0"
2525
},
2626
"require-dev": {

0 commit comments

Comments
 (0)