From 511227f58d2c10bb965d401b7a52460db04b454b Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 4 Sep 2018 13:37:01 +0100 Subject: [PATCH] [build][ci] update cache keys --- .circleci/config.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f50648a4..a1f1da52 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,25 +8,25 @@ aliases: # ------------------------- - &restore-yarn-cache 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 }} - &save-yarn-cache paths: - ~/.cache/yarn - ~/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 paths: - ~/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: v1-pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} - &restore-pods-cache keys: - - pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} - - pods-cache-{{ arch }} + - v1-pods-cache-{{ arch }}-{{ checksum "ios/RNFirebase.podspec" }}-{{ checksum "tests/ios/Podfile" }}-{{ checksum "tests/ios/Podfile.lock" }} + - v1-pods-cache-{{ arch }} - &save-ios-build-cache paths: @@ -42,11 +42,11 @@ aliases: paths: - /usr/local/Homebrew - /usr/local/Cellar - key: brew-cache-{{ arch }} + key: v1-brew-cache-{{ arch }} - &restore-brew-cache keys: - - brew-cache-{{ arch }} + - v1-brew-cache-{{ arch }} - &configure-jet-detox-environment name: Configure Jet + Detox Environment @@ -190,7 +190,7 @@ jobs: name: Install CocoaPods + Pod Install command: | cd tests/ios - pod repo update + curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf pod install - save-cache: *save-pods-cache