8000 minor #41293 Fix the detection of the stable Symfony branch (derrabus) · symfony/symfony@a2c8e84 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2c8e84

Browse files
committed
minor #41293 Fix the detection of the stable Symfony branch (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- Fix the detection of the stable Symfony branch | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | NA/ | License | MIT | Doc PR | N/A Commits ------- d6f4d30 Fix the detection of the stable Symfony branch
2 parents 1ba78b9 + d6f4d30 commit a2c8e84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

0 commit comments

Comments
 (0)
0