mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Change the repo fetch script used in integration tests (flutter/engine#17943)
* change the repo fetch script to recognize candidate versions such as flutter-1.17-candidate.3. Originally the script only accepted branches such as v0.7.3 as valid engine branches. * addressing reviewer comments: changing the release regular expression
This commit is contained in:
parent
0751f10300
commit
7b1df2e596
@ -19,9 +19,10 @@ cd $ENGINE_PATH/src/flutter
|
||||
# Special handling of release branches.
|
||||
ENGINE_BRANCH_NAME=`git branch | grep '*' | cut -d ' ' -f2`
|
||||
versionregex="^v[[:digit:]]+\."
|
||||
releasecandidateregex="^flutter-[[:digit:]]+\.[[:digit:]]+-candidate\.[[:digit:]]+$"
|
||||
ON_RELEASE_BRANCH=false
|
||||
echo "Engine on branch $ENGINE_BRANCH_NAME"
|
||||
if [[ $ENGINE_BRANCH_NAME =~ $versionregex ]]
|
||||
if [[ $ENGINE_BRANCH_NAME =~ $versionregex || $ENGINE_BRANCH_NAME =~ $releasecandidateregex ]]
|
||||
then
|
||||
echo "release branch $ENGINE_BRANCH_NAME"
|
||||
ON_RELEASE_BRANCH=true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user