summaryrefslogtreecommitdiff
path: root/.expeditor/run_windows_tests.ps1
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah.snapp@gmail.com>2022-04-08 10:57:52 -0400
committerGitHub <noreply@github.com>2022-04-08 10:57:52 -0400
commit54714b39a013cf7f784a463a530f50adee6414d4 (patch)
treecb0f5b544e510170ca6f7549eebf76805097f30c /.expeditor/run_windows_tests.ps1
parentb766530aeb5a8f7eca4cb43d3c51913f08e743b6 (diff)
parent7c000273259a70fbbbfe534fc9bb1d5c6b122b15 (diff)
downloadwmi-lite-54714b39a013cf7f784a463a530f50adee6414d4.tar.gz
Merge pull request #16 from chef/poorndm/IPACK-117-Test-Ruby-3.1HEADmain
Test Ruby 3.0/3.1
Diffstat (limited to '.expeditor/run_windows_tests.ps1')
-rw-r--r--.expeditor/run_windows_tests.ps116
1 files changed, 16 insertions, 0 deletions
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 }