Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

[CI] Add cache on CircleCI configuration #8

Open
wants to merge 1 commit into
base: step-4/use-environment-variable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ jobs:

steps:
- checkout
- restore_cache:
key: bundler-{{ checksum "Gemfile.lock" }}
- run:
name: Install project dependencies
command: bin/install
- run:
name: Test the project
command: bundle exec rspec hello_world_spec.rb
- save_cache:
key: bundler-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ curl -fLSs https://circle.ci/cli | sudo bash
# Install Bundler version shipped with Ruby 2.6.3
gem install bundler -v 1.17.2

bundle install
bundle check || bundle install