diff options
author | jayashri garud <jgarud@msystechnologies.com> | 2022-04-07 10:42:10 +0530 |
---|---|---|
committer | jayashri garud <jgarud@msystechnologies.com> | 2022-04-07 19:09:13 +0530 |
commit | 1ec0308cda4a9d42300bc96ce0e9e4e9eb16d94b (patch) | |
tree | a09428db42ee72988f5ccfe6662b2922a6b01ab6 /.expeditor | |
parent | 036d501c22dbcd5f0b9c3656cf9a97cdf14cb1da (diff) | |
download | mixlib-cli-1ec0308cda4a9d42300bc96ce0e9e4e9eb16d94b.tar.gz |
add ruby tests 3.0/3.1
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
Diffstat (limited to '.expeditor')
-rw-r--r-- | .expeditor/run_windows_tests.ps1 | 17 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 40 |
2 files changed, 43 insertions, 14 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 d103ee1..0724ea3 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -6,43 +6,55 @@ expeditor: steps: -- label: run-lint-and-specs-ruby-2.4 +- label: run-lint-and-specs-ruby-2.6 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.4-buster - -- label: run-lint-and-specs-ruby-2.5 + image: ruby:2.6 +- label: run-lint-and-specs-ruby-2.7 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.5-buster + image: ruby:2.7 -- label: run-lint-and-specs-ruby-2.6 +- label: run-lint-and-specs-ruby-3.0 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.6-buster -- label: run-lint-and-specs-ruby-2.7 + image: ruby:3.0 + +- label: run-lint-and-specs-ruby-3.1 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.7-buster + image: ruby:3.1 + +- label: run-specs-ruby-3.0-windows + commands: + - .expeditor/run_windows_tests.ps1 + + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell"] + image: rubydistros/windows-2019:3.0 + +- label: run-specs-ruby-3.1-windows + commands: + - .expeditor/run_windows_tests.ps1 -- label: run-specs-windows - command: - - bundle config set --local without docs debug - - bundle install --jobs=7 --retry=3 - - bundle exec rake expeditor: executor: docker: host_os: windows + shell: ["powershell"] + image: rubydistros/windows-2019:3.1
\ No newline at end of file |