mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[build][ci] add brew caching
This commit is contained in:
@@ -34,6 +34,14 @@ aliases:
|
||||
keys:
|
||||
- ios-build-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
|
||||
|
||||
- &save-brew-cache
|
||||
paths:
|
||||
- /usr/local/Homebrew
|
||||
key: brew-cache-{{ arch }}
|
||||
|
||||
- &restore-brew-cache
|
||||
keys:
|
||||
- brew-cache-{{ arch }}
|
||||
|
||||
- &configure-jet-detox-environment
|
||||
name: Configure Jet + Detox Environment
|
||||
@@ -155,8 +163,9 @@ jobs:
|
||||
command: |
|
||||
echo 'export PATH=/usr/local/opt/node@8/bin:$PATH' >> $BASH_ENV
|
||||
source $BASH_ENV
|
||||
- run: *restore-brew-cache
|
||||
- run: *configure-jet-detox-environment
|
||||
- run: *packager-jet
|
||||
- run: *save-brew-cache
|
||||
- restore-cache: *restore-pods-cache
|
||||
- run:
|
||||
name: Install CocoaPods + Pod Install
|
||||
@@ -169,6 +178,7 @@ jobs:
|
||||
- run:
|
||||
name: Build iOS Testing App
|
||||
command: cd tests && yarn run build-ios
|
||||
- run: *packager-jet
|
||||
- save-cache: *save-ios-build-cache
|
||||
- run:
|
||||
name: Run Jet Tests
|
||||
|
||||
Reference in New Issue
Block a user