Skip to content

Commit e91cc23

Browse files
committed
Symfony 2.7 calls its own deprecated methods, raising warnings that break the build if we treat deprecated as an error
1 parent 385ba07 commit e91cc23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,15 @@ matrix:
3333
- SYMFONY_VERSION='2.7.*@dev'
3434
- FRAMEWORK_EXTRA_VERSION='~3.0'
3535

36+
before_install:
37+
- sudo apt-get install -qq bc
38+
3639
before_script:
3740
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
41+
- bash -c 'echo "${SYMFONY_VERSION:0:3} >= 2.7"'
42+
- bash -c 'echo "${SYMFONY_VERSION:0:3} >= 2.7"|bc'
43+
- bash -c 'FLAWED_DEPRECATIONS=`echo "${SYMFONY_VERSION:0:3} >= 2.7"|bc`; echo $FLAWED_DEPRECATIONS'
44+
- bash -c 'FLAWED_DEPRECATIONS=`echo "${SYMFONY_VERSION:0:3} >= 2.7"|bc`; if [ "$FLAWED_DEPRECATIONS" = "1" ]; then echo "error_reporting = E_ALL & ~E_DEPRECATED" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;'
3845
- sh -c 'if [ "$FRAMEWORK_EXTRA_VERSION" != "" ]; then composer require --dev --no-update sensio/framework-extra-bundle=$FRAMEWORK_EXTRA_VERSION; fi;'
3946
- composer install
4047
- sudo apt-get install python-sphinx

0 commit comments

Comments
 (0)