Skip to content

Commit 6a16655

Browse files
committed
Use AppVeyor cache for gems and bundle
1 parent 17a3dc3 commit 6a16655

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

appveyor.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ environment:
2929
- ruby_version: "200-x64"
3030
- ruby_version: "21"
3131
- ruby_version: "21-x64"
32+
cache:
33+
- vendor
34+
- C:\Ruby200\lib\ruby\gems\2.0.0
35+
- C:\Ruby200\bin
36+
- C:\Ruby200-x64\lib\ruby\gems\2.0.0
37+
- C:\Ruby200-x64\bin
38+
- C:\Ruby21\lib\ruby\gems\2.1.0
39+
- C:\Ruby21\bin
40+
- C:\Ruby21-x64\lib\ruby\gems\2.1.0
41+
- C:\Ruby21-x64\bin
3242
services:
3343
- mysql

tasks/vendor_mysql.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ file "vendor/#{CONNECTOR_DIR}/include/mysql.h" => ["vendor/#{CONNECTOR_ZIP}"] do
2222
full_file = File.expand_path(t.prerequisites.last)
2323
when_writing "creating #{t.name}" do
2424
cd "vendor" do
25-
sh "unzip #{full_file} #{CONNECTOR_DIR}/bin/** #{CONNECTOR_DIR}/include/** #{CONNECTOR_DIR}/lib/**"
25+
sh "unzip -uq #{full_file} #{CONNECTOR_DIR}/bin/** #{CONNECTOR_DIR}/include/** #{CONNECTOR_DIR}/lib/**"
2626
end
2727
# update file timestamp to avoid Rake perform this extraction again.
2828
touch t.name

0 commit comments

Comments
 (0)