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:
10
circle.yml
10
circle.yml
@@ -41,18 +41,18 @@ jobs:
|
|||||||
- ../ruby-$CI_RUBY_VERSION
|
- ../ruby-$CI_RUBY_VERSION
|
||||||
|
|
||||||
- type: cache-restore
|
- type: cache-restore
|
||||||
name: Bundler Cache Restore
|
name: Bundler Restore
|
||||||
key: bundle-{{ checksum "Gemfile" }}
|
key: bundler-{{checksum "Gemfile"}}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Bundler Install
|
name: Bundler Install
|
||||||
command: |
|
command: |
|
||||||
gem update --system
|
gem update --system
|
||||||
bundle check || bundle install
|
bundle install --path vendor/bundle
|
||||||
|
|
||||||
- type: cache-save
|
- type: cache-save
|
||||||
name: Bundler Cache Store
|
name: Bundler Store
|
||||||
key: bundle-{{ checksum "Gemfile" }}
|
key: bundler-{{checksum "Gemfile"}}
|
||||||
paths:
|
paths:
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user