Skip to content

Commit

Permalink
Cache pods
Browse files Browse the repository at this point in the history
  • Loading branch information
hramos committed Jun 18, 2019
1 parent c4a0486 commit 0ede09c
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ commands:
- ~/Library/Caches/Homebrew
key: v1-brew

with_pods_cache_span:
parameters:
steps:
type: steps
steps:
- restore_cache:
keys:
- v1-pods-{{ checksum "RNTester/Podfile.lock" }}
- v1-pods-
- steps: << parameters.steps >>
- save_cache:
paths:
- RNTester/Pods
key: v1-pods-{{ checksum "RNTester/Podfile.lock" }}

download_gradle_dependencies:
steps:
- restore_cache:
Expand Down Expand Up @@ -303,9 +318,11 @@ jobs:
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
- run:
name: Generate RNTesterPods Workspace
command: cd RNTester && pod install --verbose
- with_pods_cache_span:
steps:
- run:
name: Generate RNTesterPods Workspace
command: cd RNTester && pod install --verbose

- with_brew_cache_span:
steps:
Expand Down

0 comments on commit 0ede09c

Please sign in to comment.