summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-06-05 23:18:46 +0000
committerColby Swandale <hello@colby.fyi>2018-07-10 23:02:45 +1000
commita935b676a4498a13fc4c9ee0e8e653447011a11c (patch)
tree3642a0af1d08b7e15ac24d61f2d81124126bb804
parentc7e3f8ed9375b4ee10775cbae83a68867fff7b4f (diff)
downloadbundler-a935b676a4498a13fc4c9ee0e8e653447011a11c.tar.gz
Auto merge of #6565 - ianks:cache-bundler-on-travis, r=colby-swandale
Enable bundler caching for generated travis config Thanks so much for the contribution! To make reviewing this PR a bit easier, please fill out answers to the following questions. ### What was the end-user problem that led to this PR? Whenever I create a gem using `bundle gem`, I always have to manually specify that I would like travis to cache bundler. ### What is your fix for the problem, implemented in this PR? Specify `cache: bundler` in the generated .travis.yml. (cherry picked from commit ce0ef4de8a50ce01d1db194f663a10f110eaf9f0)
-rw-r--r--lib/bundler/templates/newgem/travis.yml.tt2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/travis.yml.tt b/lib/bundler/templates/newgem/travis.yml.tt
index fe0761cc23..7a3381a889 100644
--- a/lib/bundler/templates/newgem/travis.yml.tt
+++ b/lib/bundler/templates/newgem/travis.yml.tt
@@ -1,5 +1,7 @@
+---
sudo: false
language: ruby
+cache: bundler
rvm:
- <%= RUBY_VERSION %>
before_install: gem install bundler -v <%= Bundler::VERSION %>