inspec/.expeditor/buildkite/verify.ps1
Sonu Saha caccc654f4
CFINSPEC-553: Fix failing verify pipeline builds on ruby 3.0 (#6378) (#6453)
* bundle install without kitchen group from Gemfile as verify pipeline is breaking for ruby 3.0 as Chef 18 requires to be work with ruby 3.1. In future we will be removing the support for ruby 3.0 as Chef 18 never released with ruby 3.0



* Removes all excluded groups from the bundle config set which was removed from the Gemfile.



* Exclude the gem dependencies for kitchen for omnibus builds



* Exclude the kitchen dependencies on windows platform too

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasundhara Jagdale <vasundhara.jagdale@chef.io>
2023-02-24 19:03:59 +05:30

14 lines
426 B
PowerShell

echo "--- system details"
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize
ruby -v
bundle --version
echo "--- bundle install"
bundle config set --local without deploy kitchen
bundle install --jobs=7 --retry=3
echo "+++ bundle exec rake test:parallel"
bundle exec rake test:parallel K=4
exit $LASTEXITCODE