@@ -55,7 +55,8 @@ before_install:
5555 export COMPOSER_UP='composer update --no-progress --ansi'
5656 export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
5757 export SYMFONY_DEPRECATIONS_HELPER=max[indirect]=170
58- export SYMFONY_FEATURE_BRANCH=$(curl -s https://flex.symfony.com/versions.json | jq -r '."dev-name"')
58+ export SYMFONY_FLEX_VERSIONS=$(curl -s https://flex.symfony.com/versions.json)
59+ export SYMFONY_FEATURE_BRANCH=$(echo $SYMFONY_FLEX_VERSIONS | jq -r '."dev"')
5960
6061 nanoseconds () {
6162 local cmd="date"
@@ -204,7 +205,10 @@ install:
204205 # For the feature-branch, when deps=high, the version before it is checked out and tested with the locally patched components
205206 if [[ $deps = high && $TRAVIS_BRANCH = $SYMFONY_FEATURE_BRANCH ]]; then
206207 export FLIP='^'
207- export SYMFONY_VERSION=$(echo "$SYMFONY_VERSIONS" | grep -o '/[1-9]\.[0-9].*' | tail -n 1 | sed s/.//) &&
208+ export SYMFONY_VERSION=$(echo $SYMFONY_FLEX_VERSIONS | jq -r '."next"')
209+ if [ $SYMFONY_VERSION = $SYMFONY_FEATURE_BRANCH ]; then
210+ export SYMFONY_VERSION = $(echo $SYMFONY_FLEX_VERSIONS | jq -r '."stable"')
211+ fi
208212 git fetch --depth=2 origin $SYMFONY_VERSION &&
209213 git checkout -m FETCH_HEAD &&
210214 export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)