Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6f4d30

Browse files
committed
Fix the detection of the stable Symfony branch
1 parente32d330 commitd6f4d30

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)

[8]ページ先頭

©2009-2025 Movatter.jp