summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-04-11 15:17:44 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-04-11 15:17:44 -0700
commitfad78a512357e261bfdb3523228baee234f4e1ad (patch)
tree2d7c740b42a4b8799416d69b82ca1c3f707b2cf0
parent38be255b9a89abe88fd971cfe5f0a0f2a3fb95ea (diff)
downloadmixlib-config-jfm/mixlib-config-ruby3.1.tar.gz
verifying Ruby 3.1 compatibilityjfm/mixlib-config-ruby3.1
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--.expeditor/run_windows_tests.ps117
-rw-r--r--.expeditor/verify.pipeline.yml6
2 files changed, 19 insertions, 4 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
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 1703307..6cbeb29 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -51,11 +51,9 @@ steps:
docker:
image: ruby:3.1
-- label: run-specs-windows
+- label: run-specs-ruby-3.1-windows
command:
- - bundle config --local path vendor/bundle
- - bundle install --jobs=7 --retry=3
- - bundle exec rake
+ - .expeditor/run_windows_tests.ps1
expeditor:
executor:
docker: