summaryrefslogtreecommitdiff
path: root/.expeditor/run_windows_tests.ps1
diff options
context:
space:
mode:
authorjayashri garud <jgarud@msystechnologies.com>2022-04-11 16:41:18 +0530
committerjayashri garud <jgarud@msystechnologies.com>2022-04-11 19:44:12 +0530
commited9b335ea73670e6342f05e34470919935fa9e1c (patch)
treef037ceae2cace4a2c31629d3d3e18c9c444f38d9 /.expeditor/run_windows_tests.ps1
parent78e6c110c7d6533fe9ca2b0bda029e66531efd99 (diff)
downloadmixlib-config-ed9b335ea73670e6342f05e34470919935fa9e1c.tar.gz
add ruby tests 3.0/3.1 on windows platform
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
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..f048b32
--- /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"
+
+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 } \ No newline at end of file