Skip to content

Commit

Permalink
Merge pull request #8 from samvera-labs/cache-names
Browse files Browse the repository at this point in the history
Cache names
  • Loading branch information
cjcolvar authored Apr 2, 2019
2 parents 0ead681 + 24f2851 commit 1fb99f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/commands/bundle_for_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parameters:
type: string
steps:
- restore_cache:
name: Restore bundle from cache
keys:
- v1-bundle-{{ checksum "Gemfile" }}--{{ checksum "<< parameters.project >>.gemspec" }}-<< parameters.ruby_version >>

Expand All @@ -23,6 +24,7 @@ steps:
command: bundle check || bundle install

- save_cache:
name: Save bundle cache
key: v1-bundle-{{ checksum "Gemfile" }}--{{ checksum "<< parameters.project >>.gemspec" }}-<< parameters.ruby_version >>
paths:
- ~/project/vendor/bundle
4 changes: 3 additions & 1 deletion src/commands/cached_checkout.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
description: Perform a cache-enabled git checkout.
steps:
- restore_cache:
name: Restore code from cache
keys:
- v1-source-{{ .Branch }}-{{ .Revision }}
- checkout
- save_cache:
name: Save code cache
key: v1-source-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- '.git'
2 changes: 2 additions & 0 deletions src/commands/engine_cart_generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
type: string
steps:
- restore_cache:
name: Restore test app from cache
keys:
- << parameters.cache_key >>

Expand All @@ -13,6 +14,7 @@ steps:
[ -e ./.internal_test_app ] || bundle exec rake engine_cart:generate
- save_cache:
name: Save test app cache
key: << parameters.cache_key >>
paths:
- ./.internal_test_app

0 comments on commit 1fb99f7

Please sign in to comment.