[build][ci] update config to cache cocoapods repo, cache brew Cellar and run packager-warmup script
This commit is contained in:
parent
2a308aaad0
commit
701a247a31
|
@ -20,11 +20,13 @@ aliases:
|
||||||
- &save-pods-cache
|
- &save-pods-cache
|
||||||
paths:
|
paths:
|
||||||
- ~/react-native-firebase/tests/ios/Pods
|
- ~/react-native-firebase/tests/ios/Pods
|
||||||
|
- ~/.cocoapods/repos/master
|
||||||
key: pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
key: pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
||||||
|
|
||||||
- &restore-pods-cache
|
- &restore-pods-cache
|
||||||
keys:
|
keys:
|
||||||
- pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
- pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
||||||
|
- pods-cache-{{ arch }}
|
||||||
|
|
||||||
- &save-ios-build-cache
|
- &save-ios-build-cache
|
||||||
paths:
|
paths:
|
||||||
|
@ -34,10 +36,12 @@ aliases:
|
||||||
- &restore-ios-build-cache
|
- &restore-ios-build-cache
|
||||||
keys:
|
keys:
|
||||||
- ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
- ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
||||||
|
- ios-build-cache-{{ arch }}
|
||||||
|
|
||||||
- &save-brew-cache
|
- &save-brew-cache
|
||||||
paths:
|
paths:
|
||||||
- /usr/local/Homebrew
|
- /usr/local/Homebrew
|
||||||
|
- /usr/local/Cellar
|
||||||
key: brew-cache-{{ arch }}
|
key: brew-cache-{{ arch }}
|
||||||
|
|
||||||
- &restore-brew-cache
|
- &restore-brew-cache
|
||||||
|
@ -60,6 +64,12 @@ aliases:
|
||||||
background: true
|
background: true
|
||||||
command: cd tests && yarn run packager-jet || true
|
command: cd tests && yarn run packager-jet || true
|
||||||
|
|
||||||
|
- &packager-warmup
|
||||||
|
name: Warming up Packager
|
||||||
|
background: true
|
||||||
|
command: node .circleci/scripts/packager-warmup.js
|
||||||
|
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
# INSTALLATION
|
# INSTALLATION
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
@ -180,12 +190,13 @@ jobs:
|
||||||
name: Install CocoaPods + Pod Install
|
name: Install CocoaPods + Pod Install
|
||||||
command: |
|
command: |
|
||||||
cd tests/ios
|
cd tests/ios
|
||||||
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
|
pod repo update
|
||||||
pod install
|
pod install
|
||||||
- save-cache: *save-pods-cache
|
- save-cache: *save-pods-cache
|
||||||
|
|
||||||
# must always be after environment config job but before ios build
|
# must always be after environment config job but before ios build
|
||||||
- run: *packager-jet
|
- run: *packager-jet
|
||||||
|
- run: *packager-warmup
|
||||||
|
|
||||||
# XCode Build
|
# XCode Build
|
||||||
- restore-cache: *restore-ios-build-cache
|
- restore-cache: *restore-ios-build-cache
|
||||||
|
|
Loading…
Reference in New Issue