From 1f95c8a0c92739b098d37e8e188fb3d02ed92527 Mon Sep 17 00:00:00 2001 From: David Harris Date: Wed, 5 Jun 2019 09:31:39 -0700 Subject: [PATCH] Cache ruby installs --- .circleci/config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c96f53d..81c4921e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,10 +7,23 @@ jobs: TERM: dumb steps: - checkout + - restore_cache: + keys: + - bundle-v1-{{ checksum "Gemfile.lock" }} + - bundle-v1 + + - run: # Install Ruby dependencies + name: Bundle Install + command: bundle check || bundle install + + # Store bundle cache for Ruby dependencies + - save_cache: + key: bundle-v1-{{ checksum "Gemfile.lock" }} + paths: + - vendor/bundle - run: name: Prepare environment command: | - bundle install java -version - run: