diff options
-rw-r--r-- | scripts/bk_tests/bk_win_prep.ps1 | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/scripts/bk_tests/bk_win_prep.ps1 b/scripts/bk_tests/bk_win_prep.ps1 index 1d7199916b..6d7687cdc0 100644 --- a/scripts/bk_tests/bk_win_prep.ps1 +++ b/scripts/bk_tests/bk_win_prep.ps1 @@ -2,18 +2,12 @@ echo "--- system details" $Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize -echo "--- update bundler" - +echo "Ruby version:" ruby -v if (-not $?) { throw "Can't run Ruby. Is it installed?" } - -$env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] }) -$env:BUNDLER_VERSION=($env:BUNDLER_VERSION -replace '"', "") -echo $env:BUNDLER_VERSION - -gem install bundler -v $env:BUNDLER_VERSION --force --no-document --quiet -if (-not $?) { throw "Unable to update Bundler" } +echo "Bundler version:" bundle --version +if (-not $?) { throw "Can't run Bundler. Is it installed?" } echo "--- bundle install" bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle |