forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let Travis build the gallery and push to TestFlight / Play Store (flu…
…tter#14408) * iOS works * Works on Android * Take in commit number in iOS also. Get rid of image upload for Android. It's just a waste of bandwidth * Tweak to fix on Travis
- Loading branch information
Showing
9 changed files
with
107 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
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" | ||
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" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing | ||
echo "Deploying to Play Store..." | ||
(cd examples/flutter_gallery/android; bundle exec fastlane deploy_play_store) | ||
else | ||
echo "Flutter Gallery is only deployed to the Play Store on merged 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" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing | ||
echo "Re-building with distribution profile and deploying to TestFlight..." | ||
(cd examples/flutter_gallery/ios; bundle exec fastlane build_and_deploy_testflight) | ||
else | ||
echo "Flutter Gallery is only deployed to the TestFlight on merged dev branch commits" | ||
fi | ||
fi | ||
elif [ "$SHARD" = "docs" ]; then | ||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then | ||
# Generate the API docs, upload them | ||
./dev/bots/docs.sh | ||
fi | ||
else | ||
dart ./dev/bots/test.dart | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-3.3 KB
examples/flutter_gallery/android/fastlane/metadata/android/en-US/images/icon.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters