mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
added the Symfony PHPUnit bridge to better manage deprecation notices
This commit is contained in:
+21
-16
@@ -1,28 +1,33 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.2
|
- 5.2
|
||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
- 5.5
|
- 5.5
|
||||||
- 5.6
|
- 5.6
|
||||||
- hhvm
|
- hhvm
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly
|
- php: nightly
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TWIG_EXT=no
|
- TWIG_EXT=no
|
||||||
- TWIG_EXT=yes
|
- TWIG_EXT=yes
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi
|
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi
|
||||||
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
||||||
|
- if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Composer is not available on PHP 5.2
|
||||||
|
- if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
env: TWIG_EXT=yes
|
env: TWIG_EXT=yes
|
||||||
- php: nightly
|
- php: nightly
|
||||||
env: TWIG_EXT=yes
|
env: TWIG_EXT=yes
|
||||||
|
|||||||
@@ -29,6 +29,10 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.2.7"
|
"php": ">=5.2.7"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"symfony/phpunit-bridge": "~2.7",
|
||||||
|
"symfony/debug": "~2.7"
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0" : {
|
"psr-0" : {
|
||||||
"Twig_" : "lib/"
|
"Twig_" : "lib/"
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
processIsolation="false"
|
processIsolation="false"
|
||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
syntaxCheck="false"
|
syntaxCheck="false"
|
||||||
bootstrap="test/bootstrap.php"
|
bootstrap="vendor/autoload.php"
|
||||||
>
|
>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Twig Test Suite">
|
<testsuite name="Twig Test Suite">
|
||||||
|
|||||||
Reference in New Issue
Block a user