Skip to content

Commit

Permalink
fix: Use circle CI cache properly (#6841)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal authored Feb 14, 2020
1 parent c61797b commit 94852c1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
steps:
- checkout

- run:
command: cat requirements/*.txt > requirements/combined.txt

# Download and cache dependencies
- restore_cache:
keys:
- v1.3-dependencies-{{ checksum "requirements/tests.txt" }}-{{ checksum "package.json" }}
- v1.3-dependencies-{{ checksum "requirements/combined.txt" }}-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1.3-dependencies-

Expand All @@ -33,7 +36,7 @@ jobs:
- ./node_modules
- ~/.cache/yarn
- ~/.yarn/bin
key: v1.3-dependencies-{{ checksum "requirements/tests.txt" }}-{{ checksum "package.json" }}
key: v1.3-dependencies-{{ checksum "requirements/combined.txt" }}-{{ checksum "package.json" }}

dredd:
docker:
Expand All @@ -54,10 +57,13 @@ jobs:
steps:
- checkout

- run:
command: cat requirements/*.txt > requirements/combined.txt

# Download and cache dependencies
- restore_cache:
keys:
- v1.3-dependencies-{{ checksum "requirements/tests.txt" }}-{{ checksum "package.json" }}
- v1.3-dependencies-{{ checksum "requirements/combined.txt" }}-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1.3-dependencies-

Expand All @@ -78,10 +84,13 @@ jobs:
steps:
- checkout

- run:
command: cat requirements/*.txt > requirements/combined.txt

# Download and cache dependencies
- restore_cache:
keys:
- v1.3-dependencies-{{ checksum "requirements/tests.txt" }}-{{ checksum "package.json" }}
- v1.3-dependencies-{{ checksum "requirements/combined.txt" }}-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1.3-dependencies-

Expand Down

0 comments on commit 94852c1

Please sign in to comment.