Remove deployment to play store for linux case in deploy_gallery test (#67349)

This commit is contained in:
keyonghan
2020-10-05 19:12:02 -07:00
committed by GitHub
parent 734cc1a132
commit 74c3ea4d41
17 changed files with 4 additions and 503 deletions

View File

@@ -35,21 +35,6 @@ if [[ "$OS" == "linux" ]]; then
cd dev/integration_tests/flutter_gallery
flutter build apk --release -t lib/main_publish.dart
)
echo "Android Flutter Gallery built"
if [[ -z "$CIRRUS_PR" && "$CIRRUS_BRANCH" == "dev" && "$version" != *"pre"* ]]; then
echo "Deploying Flutter Gallery $version to Play Store..."
set +x # Don't echo back the below.
if [ -n "$ANDROID_GALLERY_UPLOAD_KEY" ]; then
echo "$ANDROID_GALLERY_UPLOAD_KEY" | base64 --decode > /root/.android/debug.keystore
fi
set -x
(
cd dev/integration_tests/flutter_gallery/android
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"
@@ -87,32 +72,6 @@ elif [[ "$OS" == "darwin" ]]; then
exit 1
fi
)
echo "iOS Flutter Gallery built"
if [[ -z "$CIRRUS_PR" ]]; then
if [[ "$CIRRUS_BRANCH" == "dev" && "$version" != *"pre"* ]]; then
echo "Archiving with distribution profile and deploying to TestFlight..."
(
cd dev/integration_tests/flutter_gallery/ios
export DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV"
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
# on tagged dev branch commits). We can only do this post-merge, though, because
# the secrets aren't available on PRs.
echo "Testing archiving with distribution profile..."
(
cd dev/integration_tests/flutter_gallery/ios
# Cirrus Mac VMs come with an old version of fastlane which was causing
# dependency issues (https://github.com/flutter/flutter/issues/43435),
# so explicitly use the version specified in $BUNDLE_GEMFILE.
bundle exec fastlane build_and_deploy_testflight
)
echo "(Not deploying; Flutter Gallery is only deployed to TestFlight for tagged dev branch commits.)"
fi
else
echo "(Not archiving or deploying; Flutter Gallery archiving is only tested post-commit.)"
fi
else
echo "Unknown OS: $OS"
echo "Aborted."