[build][ci] update cache keys

This commit is contained in:
Salakar 2018-09-04 13:37:01 +01:00
parent 5134656b7e
commit 511227f58d
1 changed files with 8 additions and 8 deletions

View File

@ -8,25 +8,25 @@ aliases:
# ------------------------- # -------------------------
- &restore-yarn-cache - &restore-yarn-cache
keys: keys:
- yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }} - yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}-{{ checksum "tests/package.json" }}-{{ checksum "tests/yarn.lock" }}
- yarn-cache-{{ arch }} - yarn-cache-{{ arch }}
- &save-yarn-cache - &save-yarn-cache
paths: paths:
- ~/.cache/yarn - ~/.cache/yarn
- ~/Library/Detox/ios - ~/Library/Detox/ios
key: yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "tests/package.json" }} key: yarn-cache-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}-{{ checksum "tests/package.json" }}-{{ checksum "tests/yarn.lock" }}
- &save-pods-cache - &save-pods-cache
paths: paths:
- ~/react-native-firebase/tests/ios/Pods - ~/react-native-firebase/tests/ios/Pods
- ~/.cocoapods/repos/master - ~/.cocoapods/repos/master
key: pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} key: v1-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" }} - v1-pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }}
- pods-cache-{{ arch }} - v1-pods-cache-{{ arch }}
- &save-ios-build-cache - &save-ios-build-cache
paths: paths:
@ -42,11 +42,11 @@ aliases:
paths: paths:
- /usr/local/Homebrew - /usr/local/Homebrew
- /usr/local/Cellar - /usr/local/Cellar
key: brew-cache-{{ arch }} key: v1-brew-cache-{{ arch }}
- &restore-brew-cache - &restore-brew-cache
keys: keys:
- brew-cache-{{ arch }} - v1-brew-cache-{{ arch }}
- &configure-jet-detox-environment - &configure-jet-detox-environment
name: Configure Jet + Detox Environment name: Configure Jet + Detox Environment
@ -190,7 +190,7 @@ jobs:
name: Install CocoaPods + Pod Install name: Install CocoaPods + Pod Install
command: | command: |
cd tests/ios cd tests/ios
pod repo update curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
pod install pod install
- save-cache: *save-pods-cache - save-cache: *save-pods-cache