Skip to content

Commit 5d0cc59

Browse files
committed
Merge pull request #1341 from johnhamelink/fix-travis
Fix bundler caching in travis & Appveyor
2 parents bca7220 + defd8d0 commit 5d0cc59

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ tmp
2121
*.swp
2222
.ruby-version
2323
.ruby-gemset
24+
vendor/bundle

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@ language: ruby
22

33
sudo: false
44

5-
cache:
6-
bundler: true
7-
85
rvm:
96
- 1.9.3
107
- 2.0.0
118
- 2.2
129
- ruby-head
1310
- rbx-2
1411

15-
install:
16-
- bundle install --retry=3
12+
install: bundle install --path=vendor/bundle --retry=3 --jobs=3
13+
cache:
14+
directories:
15+
- vendor/bundle
1716

1817
script:
1918
- env CAPTURE_STDERR=${CAPTURE_STDERR:-false} bundle exec rake ci

appveyor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ environment:
1111
- ruby_version: "21"
1212
- ruby_version: "21-x64"
1313

14+
cache:
15+
- vendor/bundle
16+
1417
install:
1518
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
1619
- ruby --version
1720
- gem --version
1821
- gem install bundler
1922
- bundler --version
2023
- bundle platform
21-
- bundle install --retry=3
24+
- bundle install --path=vendor/bundle --retry=3 --jobs=3
2225

2326
test_script:
2427
- bundle exec rake ci

0 commit comments

Comments
 (0)