Skip to content

Commit bd4306d

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 bd4306d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

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

36+
before_install:
37+
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+
- sh -c 'FLAWED_DEPRECATIONS=`echo "$SYMFONY_VERSION >= 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;'
3842
- sh -c 'if [ "$FRAMEWORK_EXTRA_VERSION" != "" ]; then composer require --dev --no-update sensio/framework-extra-bundle=$FRAMEWORK_EXTRA_VERSION; fi;'
3943
- composer install
4044
- sudo apt-get install python-sphinx

0 commit comments

Comments
 (0)