Added Circle CI Bundler cache.

Speeds up the builds by pulling from the Bundler cache (when Gemfile
has not changed).
This commit is contained in:
Brooke Kuhlmann
2018-12-30 10:45:52 -07:00
parent 6c2de5a5bb
commit f58f146074

View File

@@ -41,18 +41,18 @@ jobs:
- ../ruby-$CI_RUBY_VERSION
- type: cache-restore
name: Bundler Cache Restore
key: bundle-{{ checksum "Gemfile" }}
name: Bundler Restore
key: bundler-{{checksum "Gemfile"}}
- run:
name: Bundler Install
command: |
gem update --system
bundle check || bundle install
bundle install --path vendor/bundle
- type: cache-save
name: Bundler Cache Store
key: bundle-{{ checksum "Gemfile" }}
name: Bundler Store
key: bundler-{{checksum "Gemfile"}}
paths:
- vendor/bundle