diff options
author | skeshari12 <skeshari@msystechnologies.com> | 2022-04-11 16:53:15 +0530 |
---|---|---|
committer | skeshari12 <skeshari@msystechnologies.com> | 2022-04-18 15:55:01 +0530 |
commit | 570e9782ecfed870e0e72c75f84fedc49de0e175 (patch) | |
tree | 6c015b2d7f2aedd9e25e053f9c7ce7bccee40485 | |
parent | 5e2e8b332d2151c1f5c057cdd6b6c6e4126b54f2 (diff) | |
download | chef-zero-570e9782ecfed870e0e72c75f84fedc49de0e175.tar.gz |
Add ruby 3.0/3.1 windows tests
Signed-off-by: skeshari12 <skeshari@msystechnologies.com>
-rw-r--r-- | .expeditor/run_windows_tests.ps1 | 17 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 28 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 new file mode 100644 index 0000000..1432c2c --- /dev/null +++ b/.expeditor/run_windows_tests.ps1 @@ -0,0 +1,17 @@ +# Stop script execution when a non-terminating error occurs +$ErrorActionPreference = "Stop" + +# This will run ruby test on windows platform +Write-Output "--- Bundle install" +ruby --version +bundler --version +gem update --system +If ($lastexitcode -ne 0) { Exit $lastexitcode } +bundle config set --local path vendor/bundle +If ($lastexitcode -ne 0) { Exit $lastexitcode } +bundle install --jobs=7 --retry=3 +If ($lastexitcode -ne 0) { Exit $lastexitcode } + +Write-Output "--- Bundle Execute" +bundle exec rake +If ($lastexitcode -ne 0) { Exit $lastexitcode }
\ No newline at end of file diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 36b10a9..645ca0a 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -37,3 +37,31 @@ steps: executor: docker: image: ruby:3.1 + +- label: run-specs-windows-ruby-3.0 + command: + - .expeditor/run_windows_tests.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.0 + environment: + - FORCE_FFI_YAJL=ext + - EXPIRE_CACHE=true + - CHEF_LICENSE=accept-no-persist + +- label: run-specs-windows-ruby-3.1 + command: + - .expeditor/run_windows_tests.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.1 + environment: + - FORCE_FFI_YAJL=ext + - EXPIRE_CACHE=true + - CHEF_LICENSE=accept-no-persist
\ No newline at end of file |