Re-land fix docker build and deploy_gallery-macos (#43654)

This commit is contained in:
Christopher Fujino
2019-10-29 14:29:27 -07:00
committed by GitHub
parent 261594e785
commit 20af1f25db
8 changed files with 421 additions and 22 deletions

View File

@@ -17,7 +17,6 @@ function script_location() {
# expected.
SCRIPT_LOCATION="$(script_location)"
FLUTTER_ROOT="$(dirname "$(dirname "$SCRIPT_LOCATION")")"
export PATH="$FLUTTER_ROOT/bin:$FLUTTER_ROOT/bin/cache/dart-sdk/bin:$PATH"
set -x
@@ -27,6 +26,7 @@ cd "$FLUTTER_ROOT"
version="$(<version)"
if [[ "$OS" == "linux" ]]; then
echo "Building Flutter Gallery $version for Android..."
export BUNDLE_GEMFILE="$FLUTTER_ROOT/dev/ci/docker_linux/Gemfile"
# ANDROID_SDK_ROOT must be set in the env.
(
cd examples/flutter_gallery
@@ -42,13 +42,14 @@ if [[ "$OS" == "linux" ]]; then
set -x
(
cd examples/flutter_gallery/android
fastlane deploy_play_store
bundle exec fastlane deploy_play_store
)
else
echo "(Not deploying; Flutter Gallery is only deployed to Play store for tagged dev branch commits.)"
fi
elif [[ "$OS" == "darwin" ]]; then
echo "Building Flutter Gallery $version for iOS..."
export BUNDLE_GEMFILE="$FLUTTER_ROOT/dev/ci/mac/Gemfile"
(
cd examples/flutter_gallery
flutter build ios --release --no-codesign -t lib/main_publish.dart
@@ -90,7 +91,7 @@ elif [[ "$OS" == "darwin" ]]; then
(
cd examples/flutter_gallery/ios
export DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV"
fastlane build_and_deploy_testflight upload:true
bundle exec fastlane build_and_deploy_testflight upload:true
)
else
# On iOS the signing can break as well, so we verify this regularly (not just
@@ -99,8 +100,7 @@ elif [[ "$OS" == "darwin" ]]; then
echo "Testing archiving with distribution profile..."
(
cd examples/flutter_gallery/ios
# TODO(fujino) re-enable after resolving https://github.com/flutter/flutter/issues/43204
#fastlane build_and_deploy_testflight
bundle exec fastlane build_and_deploy_testflight
)
echo "(Not deploying; Flutter Gallery is only deployed to TestFlight for tagged dev branch commits.)"
fi