From d27c3236746752dfdb9100ea691bbfbae18072dd Mon Sep 17 00:00:00 2001 From: poornima Date: Wed, 2 Mar 2022 16:36:33 +0530 Subject: Test Ruby 3.0/3.1 Signed-off-by: poornima --- .expeditor/verify.pipeline.yml | 42 ++++++++++++++++++++++++++++++------------ .github/CODEOWNERS | 4 ++-- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 580c5fb..846b993 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -15,7 +15,7 @@ steps: expeditor: executor: docker: - image: ruby:2.5-buster + image: ruby:2.5 - label: run-specs-ruby-2.6 command: @@ -23,7 +23,7 @@ steps: expeditor: executor: docker: - image: ruby:2.6-buster + image: ruby:2.6 - label: run-specs-ruby-2.7 command: @@ -31,25 +31,43 @@ steps: expeditor: executor: docker: - image: ruby:2.7-buster + image: ruby:2.7 -- label: run-specs-windows +- label: run-specs-ruby-3.0 command: - - bundle config set --local without docs debug - - bundle install --jobs=7 --retry=3 - - bundle exec rake spec + - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - host_os: windows + image: ruby:3.0 + +- label: run-specs-ruby-3.1 + command: + - .expeditor/run_linux_tests.sh rake + expeditor: + executor: + docker: + image: ruby:3.1 -- label: "Unit and Functional Testing Windows :ruby: 3.0" +- label: run-specs-ruby-3.0-windows command: - - bundle config set --local without docs debug - - bundle install --jobs=7 --retry=3 - - bundle exec rake spec + - .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' + diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b82929a..6832f2b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,5 @@ # Order is important. The last matching pattern has the most precedence. -* @chef/msys-developers -.expeditor/ @chef/jex-team +* @chef/msys-developers @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners +.expeditor/ @chef/infra-packages *.md @chef/docs-team -- cgit v1.2.1 From 7c000273259a70fbbbfe534fc9bb1d5c6b122b15 Mon Sep 17 00:00:00 2001 From: poornima Date: Fri, 8 Apr 2022 20:19:02 +0530 Subject: Add ruby tests on windows Signed-off-by: poornima --- .expeditor/run_windows_tests.ps1 | 16 ++++++++++++++++ .expeditor/verify.pipeline.yml | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .expeditor/run_windows_tests.ps1 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 846b993..8f95135 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -70,4 +70,3 @@ steps: shell: ["powershell", "-Command"] image: rubydistros/windows-2019:3.1 user: 'NT AUTHORITY\SYSTEM' - -- cgit v1.2.1