cache gems in CircleCI. (#7)

This commit is contained in:
Justin Licata 2017-07-21 14:57:10 -05:00 committed by GitHub
parent c294394704
commit 2aaad977b4

@ -25,9 +25,9 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-{{ .Branch }}
- gem-cache
- run:
name: install dependencies
@ -36,9 +36,17 @@ jobs:
npm install
- save_cache:
key: gem-cache-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- ./venv
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
- vendor/bundle
- save_cache:
key: gem-cache-{{ .Branch }}
paths:
- vendor/bundle
- save_cache:
key: gem-cache
paths:
- vendor/bundle
# Database setup
- run: bundle exec rails db:create