Sort components on CI
This commit is contained in:
parent
d177c962d7
commit
c7e2d88cfd
@ -76,7 +76,7 @@ before_install:
|
|||||||
export PHPUNIT=$(readlink -f ./phpunit)
|
export PHPUNIT=$(readlink -f ./phpunit)
|
||||||
export PHPUNIT_X="$PHPUNIT --exclude-group tty,benchmark,intl-data"
|
export PHPUNIT_X="$PHPUNIT --exclude-group tty,benchmark,intl-data"
|
||||||
export COMPOSER_UP='composer update --no-progress --no-suggest --ansi'
|
export COMPOSER_UP='composer update --no-progress --no-suggest --ansi'
|
||||||
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n')
|
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
|
||||||
find ~/.phpenv -name xdebug.ini -delete
|
find ~/.phpenv -name xdebug.ini -delete
|
||||||
|
|
||||||
if [[ $TRAVIS_PHP_VERSION = 7.4* ]]; then
|
if [[ $TRAVIS_PHP_VERSION = 7.4* ]]; then
|
||||||
@ -227,7 +227,7 @@ install:
|
|||||||
SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//) &&
|
SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//) &&
|
||||||
git fetch origin $SYMFONY_VERSION &&
|
git fetch origin $SYMFONY_VERSION &&
|
||||||
git checkout -m FETCH_HEAD &&
|
git checkout -m FETCH_HEAD &&
|
||||||
COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n')
|
COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
|
||||||
else
|
else
|
||||||
SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*')
|
SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*')
|
||||||
fi
|
fi
|
||||||
@ -235,7 +235,7 @@ install:
|
|||||||
- |
|
- |
|
||||||
# Skip the phpunit-bridge on not-master branches when $deps is empty
|
# Skip the phpunit-bridge on not-master branches when $deps is empty
|
||||||
if [[ ! $deps && $TRAVIS_BRANCH != master ]]; then
|
if [[ ! $deps && $TRAVIS_BRANCH != master ]]; then
|
||||||
COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -printf '%h\n')
|
COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -printf '%h\n' | sort)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- |
|
- |
|
||||||
|
Reference in New Issue
Block a user