* 2.8: [travis] Disable xdebug on PHP7 Tweaking deprecation message to include class name bumped Symfony version to 2.7.8 updated VERSION for 2.7.7 updated CHANGELOG for 2.7.7 bumped Symfony version to 2.3.36 updated VERSION for 2.3.35 update CONTRIBUTORS for 2.3.35 updated CHANGELOG for 2.3.35 Conflicts: CHANGELOG-2.3.md CHANGELOG-2.7.md src/Symfony/Component/Config/Resource/BCResourceInterfaceChecker.php
64 lines
3.6 KiB
YAML
64 lines
3.6 KiB
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
addons:
|
|
apt_packages:
|
|
- parallel
|
|
- language-pack-fr-base
|
|
|
|
cache:
|
|
directories:
|
|
- .phpunit
|
|
|
|
matrix:
|
|
include:
|
|
- php: hhvm
|
|
- php: 5.5
|
|
- php: 5.6
|
|
- php: 5.6
|
|
env: deps=2.8
|
|
- php: 7.0
|
|
env: deps=low
|
|
fast_finish: true
|
|
|
|
services: mongodb
|
|
|
|
env:
|
|
global:
|
|
- deps=no
|
|
- SYMFONY_DEPRECATIONS_HELPER=weak
|
|
|
|
before_install:
|
|
- if [[ "$deps" = "no" ]] && [[ "$TRAVIS_PHP_VERSION" = 5.6 ]] && [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export deps=skip; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi;
|
|
- echo "memory_limit = -1" >> $INI_FILE
|
|
- echo "session.gc_probability = 0" >> $INI_FILE
|
|
- if [ "$deps" != "skip" ]; then composer self-update; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then echo "extension = mongo.so" >> $INI_FILE; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then echo "extension = memcache.so" >> $INI_FILE; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then (echo yes | pecl install -f apcu-4.0.7 && echo "apc.enable_cli = 1" >> $INI_FILE) || echo "Let's continue without apcu extension"; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then pecl install -f memcached-2.1.0 || echo "Let's continue without memcached extension"; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]] && [ "$deps" = "no" ]; then (cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && echo "extension = $(pwd)/modules/symfony_debug.so" >> $INI_FILE); fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then echo "extension = ldap.so" >> $INI_FILE; fi;
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi;
|
|
- if [ "$deps" != "skip" ]; then ./phpunit install; fi;
|
|
- export PHPUNIT="$(readlink -f ./phpunit)"
|
|
|
|
install:
|
|
- if [ "$TRAVIS_BRANCH" = "master" ]; then export COMPOSER_ROOT_VERSION=dev-master; else export COMPOSER_ROOT_VERSION="$TRAVIS_BRANCH".x-dev; fi;
|
|
- if [ "$deps" = "no" ]; then export SYMFONY_DEPRECATIONS_HELPER=strict; fi;
|
|
- if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
|
|
- if [ "$deps" != "skip" ]; then COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi;
|
|
- if [ "$deps" != "skip" ] && [ "$deps" != "no" ]; then php .travis.php $TRAVIS_COMMIT_RANGE $TRAVIS_BRANCH $COMPONENTS; fi;
|
|
- if [ "$deps" = "2.8" ]; then git fetch origin 2.8; git checkout -m FETCH_HEAD; export COMPOSER_ROOT_VERSION=2.8.x-dev; fi;
|
|
|
|
script:
|
|
- if [ "$deps" = "no" ]; then echo "$COMPONENTS" | parallel --gnu '$PHPUNIT --exclude-group tty,benchmark,intl-data {}'; fi;
|
|
- if [ "$deps" = "no" ]; then echo -e "\\nRunning tests requiring tty"; $PHPUNIT --group tty; fi;
|
|
- if [ "$deps" = "high" ]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer --prefer-source update; $PHPUNIT --exclude-group tty,benchmark,intl-data'; fi;
|
|
- if [ "$deps" = "low" ]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer --prefer-source --prefer-lowest --prefer-stable update; $PHPUNIT --exclude-group tty,benchmark,intl-data'; fi;
|
|
- if [ "$deps" = "2.8" ]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer --prefer-source update; $PHPUNIT --exclude-group tty,benchmark,intl-data,legacy'; fi;
|
|
- if [ "$deps" = "skip" ]; then echo 'This matrix line is skipped for pull requests.'; fi;
|