diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-12-28 17:14:15 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-12-30 12:16:03 -0800 |
commit | 9a24cd522f2922c71eb08be5c9e6563a81d337e6 (patch) | |
tree | 7b4ec20fa70539791ca89dc02489aeed26f73b45 /.expeditor/scripts/bk_win_prep.ps1 | |
parent | 0f4f8f406f1be0072326fd1d8453e32a28403a72 (diff) | |
download | chef-9a24cd522f2922c71eb08be5c9e6563a81d337e6.tar.gz |
Move all the CI scripts into the .expeditor dir
There's no reason to store all our test stuff at the top level when this all used by the Expeditor / BK jobs
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to '.expeditor/scripts/bk_win_prep.ps1')
-rw-r--r-- | .expeditor/scripts/bk_win_prep.ps1 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.expeditor/scripts/bk_win_prep.ps1 b/.expeditor/scripts/bk_win_prep.ps1 new file mode 100644 index 0000000000..1a09378fee --- /dev/null +++ b/.expeditor/scripts/bk_win_prep.ps1 @@ -0,0 +1,20 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize + +echo "--- update bundler" + +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" } +bundle --version + +echo "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package +if (-not $?) { throw "Unable to install gem dependencies" } |