diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-01-27 20:10:17 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-01-28 15:12:44 -0800 |
commit | 771f304328a7016a729d299fb36826d794348095 (patch) | |
tree | f2e143b8504e9b729959e3cdfc1312959939c4c2 | |
parent | 2f1d2a73e5e35b28165377162282e191e84657fe (diff) | |
download | chef-lcg/ruby-2.7-4.tar.gz |
fix the choco specslcg/ruby-2.7-4
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | scripts/bk_tests/bk_run_choco.ps1 | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/bk_tests/bk_run_choco.ps1 b/scripts/bk_tests/bk_run_choco.ps1 index 1d4b87a73a..5360cc4914 100644 --- a/scripts/bk_tests/bk_run_choco.ps1 +++ b/scripts/bk_tests/bk_run_choco.ps1 @@ -3,7 +3,23 @@ $Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize choco --version + +echo "--- update bundler and rubygems" + ruby -v + +$env:RUBYGEMS_VERSION=$(findstr rubygems omnibus_overrides.rb | %{ $_.split(" ")[3] }) +$env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] }) + +$env:RUBYGEMS_VERSION=($env:RUBYGEMS_VERSION -replace '"', "") +$env:BUNDLER_VERSION=($env:BUNDLER_VERSION -replace '"', "") + +echo $env:RUBYGEMS_VERSION +echo $env:BUNDLER_VERSION + +gem update --system $env:RUBYGEMS_VERSION +gem --version +gem install bundler -v $env:BUNDLER_VERSION --force --no-document --quiet bundle --version echo "--- bundle install" @@ -12,4 +28,4 @@ bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle echo "+++ bundle exec rspec chocolatey_package_spec" bundle exec rspec spec/functional/resource/chocolatey_package_spec.rb -exit $LASTEXITCODE
\ No newline at end of file +exit $LASTEXITCODE |