diff options
author | poornima <poorndm@progress.com> | 2022-04-07 21:39:55 +0530 |
---|---|---|
committer | poornima <poorndm@progress.com> | 2022-04-07 21:39:55 +0530 |
commit | 3708568c554cebda4401cedf0badbfde0d95fecf (patch) | |
tree | aabc5ceacd1c336dbecc3ccb4c9d4af3b8218d6f | |
parent | d6c33ef6b1bf882c55af429b28d1b199887100d9 (diff) | |
download | mixlib-log-3708568c554cebda4401cedf0badbfde0d95fecf.tar.gz |
Add ruby 3.0/3.1 tests on windowspoorndm/IPACK-103-ADD-Ruby-3.1-windows
Signed-off-by: poornima <poorndm@progress.com>
-rw-r--r-- | .expeditor/run_windows_tests.ps1 | 16 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 21 |
2 files changed, 32 insertions, 5 deletions
diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 new file mode 100644 index 0000000..c37728b --- /dev/null +++ b/.expeditor/run_windows_tests.ps1 @@ -0,0 +1,16 @@ +# 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 } diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index e438ef0..26c145a 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -48,13 +48,24 @@ steps: docker: image: ruby:3.1 -- label: run-specs-windows +- label: run-specs-ruby-3.0-windows command: - - bundle config --local path vendor/bundle - - bundle config set --local without docs debug - - bundle install --jobs=7 --retry=3 - - bundle exec rake + - .expeditor/run_windows_tests.ps1 expeditor: executor: docker: host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.0 + user: 'NT AUTHORITY\SYSTEM' + +- label: run-specs-ruby-3.1-windows + command: + - .expeditor/run_windows_tests.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.1 + user: 'NT AUTHORITY\SYSTEM' |