Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix appveyor caching #700

Merged
merged 1 commit into from
Apr 29, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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