소스 검색

Update build script

vishnukvmd 2 년 전
부모
커밋
8bd1c1ec50
1개의 변경된 파일17개의 추가작업 그리고 12개의 파일을 삭제
  1. 17 12
      ios/ci_scripts/ci_post_clone.sh

+ 17 - 12
ios/ci_scripts/ci_post_clone.sh

@@ -1,19 +1,24 @@
 #!/bin/sh
 
-# Install CocoaPods using Homebrew.
-brew install cocoapods
+# 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
 
-# Install Flutter
-brew install --cask flutter
+echo "🟩 Install Flutter"
+time git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
+export PATH="$PATH:$HOME/flutter/bin"
 
-# Run Flutter doctor
-flutter doctor
+echo "🟩 Flutter Precache"
+time flutter precache --ios
 
-# Get packages
-flutter packages get
+echo "🟩 Install Flutter Dependencies"
+time flutter pub get
 
-# Update generated files
-flutter pub run build_runner build
+echo "🟩 Install CocoaPods via Homebrew"
+time HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods
 
-# Build ios app
-flutter build ios --no-codesign
+echo "🟩 Install CocoaPods dependencies..."
+time cd ios && pod install
+
+exit 0