Skip to content

Commit

Permalink
Merge pull request #16 from chef/poorndm/IPACK-117-Test-Ruby-3.1
Browse files Browse the repository at this point in the history
Test Ruby 3.0/3.1
  • Loading branch information
jeremiahsnapp authored Apr 8, 2022
2 parents b766530 + 7c00027 commit 54714b3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 14 deletions.
16 changes: 16 additions & 0 deletions .expeditor/run_windows_tests.ps1
Original file line number Diff line number Diff line change
@@ -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 }
41 changes: 29 additions & 12 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,58 @@ steps:
expeditor:
executor:
docker:
image: ruby:2.5-buster
image: ruby:2.5

- label: run-specs-ruby-2.6
command:
- .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
image: ruby:2.6-buster
image: ruby:2.6

- label: run-specs-ruby-2.7
command:
- .expeditor/run_linux_tests.sh rake
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'
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 54714b3

Please sign in to comment.