Skip to content

Commit

Permalink
Update Travis config (nelmio#843)
Browse files Browse the repository at this point in the history
- Add PHP 7.2
- Test against Symfony 3.4 and 4.0 stable instead of dev
- Test against Symfony 4.1
- Fix deprecated usage of constants in YAML
  • Loading branch information
theofidry authored Dec 17, 2017
1 parent 32b6f54 commit e67c206
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cache:
php:
- '7.0'
- '7.1'
- '7.2'
- nightly

env:
Expand All @@ -18,18 +19,19 @@ matrix:
include:
- php: '7.0'
env: COMPOSER_FLAGS='--prefer-lowest'
- php: '7.1'
- php: '7.2'
env: COVERAGE='true'
- php: '7.1'
- php: '7.2'
env: SYMFONY_VERSION='~3.3.0'
- php: '7.1'
env: SYMFONY_VERSION='~3.4.0@dev'
- php: '7.1'
env: SYMFONY_VERSION='~4.0.0@dev'
- php: '7.2'
env: SYMFONY_VERSION='~3.4.0'
- php: '7.2'
env: SYMFONY_VERSION='~4.0.0'
- php: '7.2'
env: SYMFONY_VERSION='~4.1.0@dev'
allow_failures:
- php: nightly
- env: SYMFONY_VERSION='~3.4.0@dev'
- env: SYMFONY_VERSION='~4.0.0@dev'
- env: SYMFONY_VERSION='~4.1.0@dev'

before_install:
- set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion fixtures/Parser/files/yaml/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

Nelmio\Alice\Model\User:
user0:
max_int: !php/const:PHP_INT_MAX
max_int: !php/const PHP_INT_MAX

0 comments on commit e67c206

Please sign in to comment.