Skip to content

Commit

Permalink
Merge pull request #70 from chef/poorndm/IPACK-103-ADD-Ruby-3.1-windows
Browse files Browse the repository at this point in the history
Add ruby 3.0/3.1 tests on windows
  • Loading branch information
jeremiahsnapp authored Apr 7, 2022
2 parents d6c33ef + 3708568 commit 8643e33
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 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 }
21 changes: 16 additions & 5 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 8643e33

Please sign in to comment.