Skip to content

Commit f227d42

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 f227d42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

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

36+
# only needed for the hackaround for https://github.com/symfony/symfony/issues/12868
37+
before_install:
38+
- sudo apt-get install -qq bc
39+
3640
before_script:
3741
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
42+
# hackaround until https://github.com/symfony/symfony/issues/12868 is fixed
43+
- 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; echo "PHPUnit_Framework_Error_Deprecated::\$enabled = false;" >> Tests/bootstrap.php; fi;'
3844
- sh -c 'if [ "$FRAMEWORK_EXTRA_VERSION" != "" ]; then composer require --dev --no-update sensio/framework-extra-bundle=$FRAMEWORK_EXTRA_VERSION; fi;'
3945
- composer install
4046
- sudo apt-get install python-sphinx

0 commit comments

Comments
 (0)