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

Commit

Permalink
[CircleCI] Add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ynote committed Aug 11, 2019
1 parent 58d4e54 commit 4a8f397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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:
- ~/.bundle
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ curl -fLSs https://circle.ci/cli | sudo bash

gem install bundler

bundle install
bundle check || bundle install

0 comments on commit 4a8f397

Please sign in to comment.