summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-06-05 23:18:46 +0000
committerThe Bundler Bot <bot@bundler.io>2018-06-05 23:18:46 +0000
commitce0ef4de8a50ce01d1db194f663a10f110eaf9f0 (patch)
tree82d5117898a7efa2077be82b9ed2c723555e8e1e
parent2834e4839c73801c46a1f27bba794fdda7368d86 (diff)
parentccd51b327af1a661aab76a580512dedd92b6739a (diff)
downloadbundler-ce0ef4de8a50ce01d1db194f663a10f110eaf9f0.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.
-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 %>