From 7ed8a508a571472998bd598e3189ea2096df70a1 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Fri, 29 Apr 2016 19:14:37 -0400 Subject: [PATCH] fix appveyor config --- appveyor.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3ff0bc4bc4..0e5e7f57c7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,8 +3,10 @@ platform: - x64 environment: + bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem + matrix: - - ruby_version: "200-x64" + - ruby_version: "193" - ruby_version: "22" clone_folder: c:\projects\inspec @@ -14,28 +16,24 @@ branches: only: - master +cache: + - vendor/bundle -> appveyor.yml + install: - systeminfo - winrm quickconfig -q - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - echo %PATH% - ruby --version - - gem install bundler --quiet --no-ri --no-rdoc - - ruby --version - gem --version + - appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem + - gem install --local bundler --quiet --no-document - bundler --version - ruby -r rubygems -e "p Gem.path" build_script: - - bundle install --without integration tools maintenance + - bundle install --path=vendor/bundle --without integration tools maintenance test_script: - SET SPEC_OPTS=--format progress - bundle exec rake - -cache: - - C:\Users\appveyor\.gem\ruby\2.2.0 - - C:\Ruby200-x64\bin\gem - - C:\Ruby200-x64\lib\ruby\gems\2.0.0 - - C:\Ruby22\bin\gem - - C:\Ruby22\lib\ruby\gems\2.2.0