[build][ci] add brew caching

This commit is contained in:
Salakar 2018-09-03 21:50:18 +01:00
parent ac79ceaaa1
commit 7cbb56cd8a
1 changed files with 11 additions and 1 deletions

View File

@ -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