Fix gallery build ruby script (#16121)
* Fix gallery build ruby script
* Also print a message when not deploying
diff --git a/dev/bots/travis_script.sh b/dev/bots/travis_script.sh
index 88bc538..53fc948 100755
--- a/dev/bots/travis_script.sh
+++ b/dev/bots/travis_script.sh
@@ -29,6 +29,7 @@
else
echo "Archiving with distribution profile..."
(cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight)
+ echo "Archive is only deployed to TestFlight on tagged dev branch commits"
fi
else
echo "Flutter Gallery is only deployed to the TestFlight on merged and tagged dev branch commits"
diff --git a/examples/flutter_gallery/ios/fastlane/Fastfile b/examples/flutter_gallery/ios/fastlane/Fastfile
index f689b64..5862481 100644
--- a/examples/flutter_gallery/ios/fastlane/Fastfile
+++ b/examples/flutter_gallery/ios/fastlane/Fastfile
@@ -73,7 +73,7 @@
codesigning_identity: 'iPhone Distribution: Store Ladd (S8QB4VV633)',
)
- if options[:upload]
+ if options && options[:upload]
upload_to_testflight
end
end