Merge pull request #700 from chef/dr/appveyor

fix appveyor caching
This commit is contained in:
Dominik Richter 2016-04-30 01:33:08 +02:00
commit 7a8f6c13f6

View file

@ -3,8 +3,10 @@ platform:
- x64 - x64
environment: environment:
bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem
matrix: matrix:
- ruby_version: "200-x64" - ruby_version: "193"
- ruby_version: "22" - ruby_version: "22"
clone_folder: c:\projects\inspec clone_folder: c:\projects\inspec
@ -14,28 +16,24 @@ branches:
only: only:
- master - master
cache:
- vendor/bundle -> appveyor.yml
install: install:
- systeminfo - systeminfo
- winrm quickconfig -q - winrm quickconfig -q
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- echo %PATH% - echo %PATH%
- ruby --version - ruby --version
- gem install bundler --quiet --no-ri --no-rdoc
- ruby --version
- gem --version - gem --version
- appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem
- gem install --local bundler --quiet --no-document
- bundler --version - bundler --version
- ruby -r rubygems -e "p Gem.path" - ruby -r rubygems -e "p Gem.path"
build_script: build_script:
- bundle install --without integration tools maintenance - bundle install --path=vendor/bundle --without integration tools maintenance
test_script: test_script:
- SET SPEC_OPTS=--format progress - SET SPEC_OPTS=--format progress
- bundle exec rake - 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