Unverified Commit 0b5c1dac authored by xster's avatar xster Committed by GitHub

Bundle install before running fastlane on Travis (#14470)

parent b88ba79c
...@@ -13,7 +13,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then ...@@ -13,7 +13,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
echo "Android Flutter Gallery built" echo "Android Flutter Gallery built"
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing
echo "Deploying to Play Store..." echo "Deploying to Play Store..."
(cd examples/flutter_gallery/android; bundle exec fastlane deploy_play_store) (cd examples/flutter_gallery/android; bundle install && bundle exec fastlane deploy_play_store)
else 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 dev branch commits"
fi fi
...@@ -23,7 +23,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then ...@@ -23,7 +23,7 @@ if [ "$SHARD" = "build_and_deploy_gallery" ]; then
echo "iOS Flutter Gallery built" echo "iOS Flutter Gallery built"
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # TODO(xster): add back && [ "$TRAVIS_BRANCH" = "dev" ] after testing 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..." echo "Re-building with distribution profile and deploying to TestFlight..."
(cd examples/flutter_gallery/ios; bundle exec fastlane build_and_deploy_testflight) (cd examples/flutter_gallery/ios; bundle install && bundle exec fastlane build_and_deploy_testflight)
else 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 dev branch commits"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment