@@ -43,6 +43,7 @@ before_install:
43
43
- if [[ $TRAVIS_PHP_VERSION = 5.* && ! $deps ]]; then (cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && echo extension = $(pwd)/modules/symfony_debug.so >> $INI_FILE); fi;
44
44
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo extension = ldap.so >> $INI_FILE; fi;
45
45
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
46
+ - if [[ $TRAVIS_REPO_SLUG = symfony/symfony ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
46
47
- if [[ $deps != skip ]]; then composer self-update; fi;
47
48
- if [[ $deps != skip ]]; then ./phpunit install; fi;
48
49
- export PHPUNIT=$(readlink -f ./phpunit)
@@ -54,13 +55,13 @@ install:
54
55
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; fi;
55
56
- if [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]]; then LEGACY=,legacy; fi;
56
57
- export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev;
57
- - if [[ ! $deps ]]; then composer --prefer-source install ; else export SYMFONY_DEPRECATIONS_HELPER=weak; fi;
58
+ - if [[ ! $deps ]]; then composer update --prefer-dist ; else export SYMFONY_DEPRECATIONS_HELPER=weak; fi;
58
59
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi;
59
60
60
61
script :
61
62
- if [[ ! $deps ]]; then echo "$COMPONENTS" | parallel --gnu '$PHPUNIT --exclude-group tty,benchmark,intl-data {}'; fi;
62
63
- if [[ ! $deps ]]; then echo -e "\\nRunning tests requiring tty"; $PHPUNIT --group tty; fi;
63
64
- if [[ ! $deps && $TRAVIS_PHP_VERSION = ${MIN_PHP%.*} ]]; then echo -e "1\\n0" | parallel --gnu --timeout 60 'echo -e "\\nPHP --enable-sigchild enhanced={}" && ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php .phpunit/phpunit-4.8/phpunit --colors=always src/Symfony/Component/Process/'; fi;
64
- - if [[ $deps = high ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer --prefer-source update ; $PHPUNIT --exclude-group tty,benchmark,intl-data'$LEGACY; fi;
65
- - 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;
65
+ - if [[ $deps = high ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer update --prefer-dist ; $PHPUNIT --exclude-group tty,benchmark,intl-data'$LEGACY; fi;
66
+ - if [[ $deps = low ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer update --prefer-dist --prefer-lowest --prefer-stable; $PHPUNIT --exclude-group tty,benchmark,intl-data'; fi;
66
67
- if [[ $deps = skip ]]; then echo This matrix line is skipped for pull requests.; fi;
0 commit comments