-
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.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# CI/CD for Flutter | ||
# From https://docs.flutter.dev/deployment/cd#post-clone-script | ||
|
||
# Fail this script if any subcommand fails. | ||
set -e | ||
|
||
# The default execution directory of this script is the ci_scripts directory. | ||
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. | ||
|
||
# Install Flutter using git. | ||
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter | ||
export PATH="$PATH:$HOME/flutter/bin" | ||
|
||
# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms. | ||
flutter precache --ios | ||
|
||
# Install Flutter dependencies. | ||
flutter pub get | ||
|
||
# Install CocoaPods using Homebrew. | ||
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates. | ||
brew install cocoapods | ||
|
||
# Install CocoaPods dependencies. | ||
cd ios && pod install # run `pod install` in the `ios` directory. | ||
|
||
exit 0 |