Skip to content

Commit

Permalink
Merge pull request #80 from chef/IPACK-112-chef-win32-service-operati…
Browse files Browse the repository at this point in the history
…onalize-ruby-3-0-3-1-verify-pipeline

Add ruby 3.0 and 3.1 tests
  • Loading branch information
jeremiahsnapp authored Apr 27, 2022
2 parents 0b99ac4 + 5862e18 commit 67a0f7a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 70 deletions.
17 changes: 17 additions & 0 deletions .expeditor/run_windows_tests.ps1
Original file line number Diff line number Diff line change
@@ -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 }
23 changes: 18 additions & 5 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,25 @@ expeditor:
timeout_in_minutes: 30

steps:
- label: "run specs :windows:"
command:
- bundle config set --local without docs debug
- bundle install --jobs=7 --retry=3
- bundle exec rake spec

- 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
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Order is important. The last matching pattern has the most precedence.

* @chef/msys-developers
.expeditor/** @chef/jex-team
* @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners
.expeditor/** @chef/infra-packages
*.md @chef/docs-team
63 changes: 0 additions & 63 deletions appveyor.yml

This file was deleted.

0 comments on commit 67a0f7a

Please sign in to comment.