Merge branch '4.4' into 5.0
* 4.4: [travis] skip extensions that dont compile on nightly
This commit is contained in:
commit
fdedbb7ff0
17
.travis.yml
17
.travis.yml
@ -155,14 +155,15 @@ before_install:
|
|||||||
fi
|
fi
|
||||||
if [[ $PHP = nightly ]]; then
|
if [[ $PHP = nightly ]]; then
|
||||||
tfold ext.memcached tpecl memcached-3.1.5 memcached.so $INI
|
tfold ext.memcached tpecl memcached-3.1.5 memcached.so $INI
|
||||||
|
else
|
||||||
|
tfold ext.apcu tpecl apcu-5.1.18 apcu.so $INI
|
||||||
|
tfold ext.mongodb tpecl mongodb-1.6.16 mongodb.so $INI
|
||||||
|
tfold ext.zookeeper tpecl zookeeper-0.7.2 zookeeper.so $INI
|
||||||
|
tfold ext.amqp tpecl amqp-1.10.2 amqp.so $INI
|
||||||
|
tfold ext.redis tpecl redis-5.2.2 redis.so $INI "no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tfold ext.apcu tpecl apcu-5.1.17 apcu.so $INI
|
|
||||||
tfold ext.mongodb tpecl mongodb-1.6.0 mongodb.so $INI
|
|
||||||
tfold ext.igbinary tpecl igbinary-3.1.2 igbinary.so $INI
|
tfold ext.igbinary tpecl igbinary-3.1.2 igbinary.so $INI
|
||||||
tfold ext.zookeeper tpecl zookeeper-0.7.1 zookeeper.so $INI
|
|
||||||
tfold ext.amqp tpecl amqp-1.9.4 amqp.so $INI
|
|
||||||
tfold ext.redis tpecl redis-4.3.0 redis.so $INI "no"
|
|
||||||
done
|
done
|
||||||
- |
|
- |
|
||||||
# List all php extensions with versions
|
# List all php extensions with versions
|
||||||
@ -259,14 +260,14 @@ install:
|
|||||||
run_tests () {
|
run_tests () {
|
||||||
set -e
|
set -e
|
||||||
export PHP=$1
|
export PHP=$1
|
||||||
phpenv global $PHP
|
|
||||||
|
|
||||||
if [[ $PHP != 7.4* && $PHP != $TRAVIS_PHP_VERSION && $TRAVIS_PULL_REQUEST != false ]]; then
|
if [[ $PHP != 7.4* && $PHP != $TRAVIS_PHP_VERSION && $TRAVIS_PULL_REQUEST != false ]]; then
|
||||||
echo -e "\\n\\e[33;1mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"
|
echo -e "\\n\\e[33;1mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
phpenv global $PHP
|
||||||
|
|
||||||
([[ $deps ]] && cd src/Symfony/Component/HttpFoundation; cp composer.json composer.bak; composer config platform.ext-mongodb 1.6.0; composer require --dev --no-update mongodb/mongodb ~1.5.0)
|
([[ $deps ]] && cd src/Symfony/Component/HttpFoundation; cp composer.json composer.bak; composer config platform.ext-mongodb 1.6.99; composer require --dev --no-update mongodb/mongodb ~1.5.0)
|
||||||
tfold 'composer update' $COMPOSER_UP
|
tfold 'composer update' $COMPOSER_UP
|
||||||
tfold 'phpunit install' ./phpunit install
|
tfold 'phpunit install' ./phpunit install
|
||||||
if [[ $deps = high ]]; then
|
if [[ $deps = high ]]; then
|
||||||
@ -283,7 +284,7 @@ install:
|
|||||||
git fetch --depth=2 origin $SYMFONY_VERSION
|
git fetch --depth=2 origin $SYMFONY_VERSION
|
||||||
git checkout -m FETCH_HEAD
|
git checkout -m FETCH_HEAD
|
||||||
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | xargs -n1 -I{} bash -c "[ -e '{}/phpunit.xml.dist' ] && echo '{}'" | sort)
|
COMPONENTS=$(echo "$COMPONENTS" | xargs dirname | xargs -n1 -I{} bash -c "[ -e '{}/phpunit.xml.dist' ] && echo '{}'" | sort)
|
||||||
(cd src/Symfony/Component/HttpFoundation; composer config platform.ext-mongodb 1.6.0; composer require --dev --no-update mongodb/mongodb)
|
(cd src/Symfony/Component/HttpFoundation; composer config platform.ext-mongodb 1.6.99; composer require --dev --no-update mongodb/mongodb)
|
||||||
[[ ! $COMPONENTS ]] || tfold 'phpunit install' SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 ./phpunit install
|
[[ ! $COMPONENTS ]] || tfold 'phpunit install' SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 ./phpunit install
|
||||||
[[ ! $COMPONENTS ]] || echo "$COMPONENTS" | parallel --gnu "tfold {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT_X$LEGACY'" || X=1
|
[[ ! $COMPONENTS ]] || echo "$COMPONENTS" | parallel --gnu "tfold {} 'cd {} && rm composer.lock vendor/ -Rf && $COMPOSER_UP && $PHPUNIT_X$LEGACY'" || X=1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user