summaryrefslogtreecommitdiff
path: root/.expeditor/run_windows_tests.ps1
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah.snapp@gmail.com>2022-04-26 09:10:16 -0400
committerGitHub <noreply@github.com>2022-04-26 09:10:16 -0400
commit1090977dbbb54efa827cbdab597d4e36a3d544bd (patch)
tree6c015b2d7f2aedd9e25e053f9c7ce7bccee40485 /.expeditor/run_windows_tests.ps1
parent5e2e8b332d2151c1f5c057cdd6b6c6e4126b54f2 (diff)
parent570e9782ecfed870e0e72c75f84fedc49de0e175 (diff)
downloadchef-zero-1090977dbbb54efa827cbdab597d4e36a3d544bd.tar.gz
Merge pull request #324 from chef/IPACK-159-chef-zero-add-ruby-3-0-3-1-tets-on-windows-platform
Add ruby 3.0/3.1 windows tests
Diffstat (limited to '.expeditor/run_windows_tests.ps1')
-rw-r--r--.expeditor/run_windows_tests.ps117
1 files changed, 17 insertions, 0 deletions
diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1
new file mode 100644
index 0000000..1432c2c
--- /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"
+ruby --version
+bundler --version
+gem update --system
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
+bundle config set --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