ente/auth/ios/ci_scripts/ci_post_clone.sh

25 lines
659 B
Bash
Raw Normal View History

2023-01-26 09:21:00 +00:00
#!/bin/sh
2023-01-26 09:27:24 +00:00
# by default, the execution directory of this script is the ci_scripts directory
# CI_WORKSPACE is the directory of your cloned repo
echo "🟩 Navigate from ($PWD) to ($CI_WORKSPACE)"
cd $CI_WORKSPACE
2023-01-26 09:21:00 +00:00
2023-01-26 09:27:24 +00:00
echo "🟩 Install Flutter"
time git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"
2023-01-26 09:21:00 +00:00
2023-01-26 09:27:24 +00:00
echo "🟩 Flutter Precache"
time flutter precache --ios
2023-01-26 09:21:00 +00:00
2023-01-26 09:27:24 +00:00
echo "🟩 Install Flutter Dependencies"
time flutter pub get
2023-01-26 09:21:00 +00:00
2023-01-26 09:27:24 +00:00
echo "🟩 Install CocoaPods via Homebrew"
time HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods
2023-01-26 09:21:00 +00:00
2023-01-26 09:27:24 +00:00
echo "🟩 Install CocoaPods dependencies..."
time cd ios && pod install
exit 0