From 9730e0ce459279461dc2528f6600b9bfde8a2556 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 28 Jan 2018 07:44:33 -0700 Subject: [PATCH] Updated to Circle CI 2.0.0 configuration. Uses latest configuration version in order to not be caught off-guard if/when they drop v1.0.0 support. [Details](https://circleci.com/docs/2.0). --- circle.yml | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index 869894f..f4fa3ac 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,33 @@ -dependencies: - pre: - - gem update --system - - gem update bundler -test: - override: - - bundle exec rake +version: 2 +jobs: + build: + working_directory: ~/project + docker: + - image: circleci/ruby:2.5.0 + environment: + BUNDLE_JOBS: 3 + BUNDLE_RETRY: 3 + BUNDLE_PATH: vendor/bundle + EDITOR: vim + steps: + - checkout + + - type: cache-restore + name: Bundler Cache Restore + key: bundle-{{ checksum "Gemfile" }} + + - run: + name: Bundler Install + command: | + gem update --system + bundle check || bundle install + + - type: cache-save + name: Bundler Cache Store + key: bundle-{{ checksum "Gemfile" }} + paths: + - vendor/bundle + + - run: + name: Rake Run + command: bundle exec rake