Skip to content

Commit

Permalink
Use AppVeyor cache for gems and bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Jan 7, 2015
1 parent 17a3dc3 commit 6a16655
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@ environment:
- ruby_version: "200-x64"
- ruby_version: "21"
- ruby_version: "21-x64"
cache:
- vendor
- C:\Ruby200\lib\ruby\gems\2.0.0
- C:\Ruby200\bin
- C:\Ruby200-x64\lib\ruby\gems\2.0.0
- C:\Ruby200-x64\bin
- C:\Ruby21\lib\ruby\gems\2.1.0
- C:\Ruby21\bin
- C:\Ruby21-x64\lib\ruby\gems\2.1.0
- C:\Ruby21-x64\bin
services:
- mysql
2 changes: 1 addition & 1 deletion tasks/vendor_mysql.rake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ file "vendor/#{CONNECTOR_DIR}/include/mysql.h" => ["vendor/#{CONNECTOR_ZIP}"] do
full_file = File.expand_path(t.prerequisites.last)
when_writing "creating #{t.name}" do
cd "vendor" do
sh "unzip #{full_file} #{CONNECTOR_DIR}/bin/** #{CONNECTOR_DIR}/include/** #{CONNECTOR_DIR}/lib/**"
sh "unzip -uq #{full_file} #{CONNECTOR_DIR}/bin/** #{CONNECTOR_DIR}/include/** #{CONNECTOR_DIR}/lib/**"
end
# update file timestamp to avoid Rake perform this extraction again.
touch t.name
Expand Down

0 comments on commit 6a16655

Please sign in to comment.