diff options
author | Jeremiah Snapp <jeremiah.snapp@gmail.com> | 2022-04-13 07:23:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 07:23:57 -0400 |
commit | 00caf8367203dca11a9d3ccfc4819f85b7fe2542 (patch) | |
tree | f037ceae2cace4a2c31629d3d3e18c9c444f38d9 | |
parent | 78e6c110c7d6533fe9ca2b0bda029e66531efd99 (diff) | |
parent | ed9b335ea73670e6342f05e34470919935fa9e1c (diff) | |
download | mixlib-config-00caf8367203dca11a9d3ccfc4819f85b7fe2542.tar.gz |
Merge pull request #111 from chef/IPACK-160-mixlib-config-add-ruby-3-0-3-1-tests-on-windows-platform
add ruby tests 3.0/3.1 on windows platform
-rw-r--r-- | .expeditor/run_windows_tests.ps1 | 17 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 22 |
2 files changed, 34 insertions, 5 deletions
diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 new file mode 100644 index 0000000..f048b32 --- /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" + +bundle config --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 68fb93d..fc24950 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -51,12 +51,24 @@ steps: docker: image: ruby:3.1 -- label: run-specs-windows - command: - - bundle config --local path vendor/bundle - - bundle install --jobs=7 --retry=3 - - bundle exec rake +- label: run-specs-ruby-3.0-windows + commands: + - .expeditor/run_windows_tests.ps1 + + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.0 + +- label: run-specs-ruby-3.1-windows + commands: + - .expeditor/run_windows_tests.ps1 + expeditor: executor: docker: host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.1
\ No newline at end of file |