ci_post_clone.sh 659 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # by default, the execution directory of this script is the ci_scripts directory
  3. # CI_WORKSPACE is the directory of your cloned repo
  4. echo "🟩 Navigate from ($PWD) to ($CI_WORKSPACE)"
  5. cd $CI_WORKSPACE
  6. echo "🟩 Install Flutter"
  7. time git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
  8. export PATH="$PATH:$HOME/flutter/bin"
  9. echo "🟩 Flutter Precache"
  10. time flutter precache --ios
  11. echo "🟩 Install Flutter Dependencies"
  12. time flutter pub get
  13. echo "🟩 Install CocoaPods via Homebrew"
  14. time HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods
  15. echo "🟩 Install CocoaPods dependencies..."
  16. time cd ios && pod install
  17. exit 0