[travis] test with latest PHP 7.1 to hopefully get rid of segfaults

This commit is contained in:
Nicolas Grekas 2018-08-03 14:33:19 +02:00
parent ed36e64bd4
commit 613ca3c19c
1 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ env:
matrix:
include:
- php: 7.1.3
- php: 7.1
- php: 7.1
env: deps=high
- php: 7.2
@ -113,7 +113,7 @@ before_install:
- |
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line
if [[ ! $deps && $TRAVIS_PHP_VERSION = $MIN_PHP && ! -d php-$MIN_PHP/sapi ]]; then
if [[ ! $deps && $TRAVIS_PHP_VERSION = ${MIN_PHP%.*} && ! -d php-$MIN_PHP/sapi ]]; then
wget http://php.net/get/php-$MIN_PHP.tar.bz2/from/this/mirror -O - | tar -xj &&
(cd php-$MIN_PHP && ./configure --enable-sigchild --enable-pcntl && make -j2)
fi
@ -215,7 +215,8 @@ install:
else
echo "$COMPONENTS" | parallel --gnu "tfold {} $PHPUNIT_X {}"
tfold src/Symfony/Component/Console.tty $PHPUNIT src/Symfony/Component/Console --group tty
if [[ $PHP = $MIN_PHP ]]; then
if [[ $PHP = ${MIN_PHP%.*} ]]; then
export PHP=$MIN_PHP
tfold src/Symfony/Component/Process.sigchild SYMFONY_DEPRECATIONS_HELPER=weak php-$MIN_PHP/sapi/cli/php ./phpunit --colors=always src/Symfony/Component/Process/
fi
fi