Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
104858cb
Unverified
Commit
104858cb
authored
Mar 23, 2018
by
xster
Committed by
GitHub
Mar 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not push -pre versions to stores (#15845)
parent
b3b9b221
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
travis_script.sh
dev/bots/travis_script.sh
+6
-5
No files found.
dev/bots/travis_script.sh
View file @
104858cb
...
...
@@ -5,27 +5,28 @@ set -ex
export
PATH
=
"
$PWD
/bin:
$PWD
/bin/cache/dart-sdk/bin:
$PATH
"
if
[
"
$SHARD
"
=
"build_and_deploy_gallery"
]
;
then
echo
"Building and deploying Flutter Gallery"
version
=
$(
<version
)
echo
"Building and deploying Flutter Gallery
$version
"
if
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
;
then
echo
"Building Flutter Gallery for Android..."
export
ANDROID_HOME
=
`
pwd
`
/android-sdk
(
cd
examples/flutter_gallery
;
flutter build apk
--release
)
echo
"Android Flutter Gallery built"
if
[[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
&&
"
$TRAVIS_BRANCH
"
==
"dev"
]]
;
then
if
[[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
&&
"
$TRAVIS_BRANCH
"
==
"dev"
&&
$version
!=
*
"pre"
*
]]
;
then
echo
"Deploying to Play Store..."
(
cd
examples/flutter_gallery/android
;
bundle
install
&&
bundle
exec
fastlane deploy_play_store
)
else
echo
"Flutter Gallery is only deployed to the Play Store on merged dev branch commits"
echo
"Flutter Gallery is only deployed to the Play Store on merged
and tagged
dev branch commits"
fi
elif
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
echo
"Building Flutter Gallery for iOS..."
(
cd
examples/flutter_gallery
;
flutter build ios
--release
--no-codesign
)
echo
"iOS Flutter Gallery built"
if
[[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
&&
"
$TRAVIS_BRANCH
"
==
"dev"
]]
;
then
if
[[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
&&
"
$TRAVIS_BRANCH
"
==
"dev"
&&
$version
!=
*
"pre"
*
]]
;
then
echo
"Re-building with distribution profile and deploying to TestFlight..."
(
cd
examples/flutter_gallery/ios
;
bundle
install
&&
bundle
exec
fastlane build_and_deploy_testflight
)
else
echo
"Flutter Gallery is only deployed to the TestFlight on merged dev branch commits"
echo
"Flutter Gallery is only deployed to the TestFlight on merged
and tagged
dev branch commits"
fi
fi
elif
[
"
$SHARD
"
=
"docs"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment