summaryrefslogtreecommitdiff
path: root/.expeditor/run_windows_tests.ps1
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah.snapp@gmail.com>2022-04-07 12:23:21 -0400
committerGitHub <noreply@github.com>2022-04-07 12:23:21 -0400
commit8643e3348de7c5c0ed3ffeb80f5300d767f450ac (patch)
treeaabc5ceacd1c336dbecc3ccb4c9d4af3b8218d6f /.expeditor/run_windows_tests.ps1
parentd6c33ef6b1bf882c55af429b28d1b199887100d9 (diff)
parent3708568c554cebda4401cedf0badbfde0d95fecf (diff)
downloadmixlib-log-main.tar.gz
Merge pull request #70 from chef/poorndm/IPACK-103-ADD-Ruby-3.1-windowsHEADmain
Add ruby 3.0/3.1 tests on windows
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 }