summaryrefslogtreecommitdiff
path: root/scripts/bk_tests/bk_win_prep.ps1
blob: 6d7687cdc0359770bfcc99734d2610c80126fb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
echo "--- system details"
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize

echo "Ruby version:"
ruby -v
if (-not $?) { throw "Can't run Ruby. Is it installed?" }
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
if (-not $?) { throw "Unable to install gem dependencies" }