summaryrefslogtreecommitdiff
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
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>
-rw-r--r--.expeditor/run_windows_tests.ps117
-rw-r--r--.expeditor/verify.pipeline.yml22
2 files changed, 34 insertions, 5 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 68fb93d..fc24950 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -51,12 +51,24 @@ steps:
docker:
image: ruby:3.1
-- label: run-specs-windows
- command:
- - bundle config --local path vendor/bundle
- - bundle install --jobs=7 --retry=3
- - bundle exec rake
+- label: run-specs-ruby-3.0-windows
+ commands:
+ - .expeditor/run_windows_tests.ps1
+
+ expeditor:
+ executor:
+ docker:
+ host_os: windows
+ shell: ["powershell", "-Command"]
+ image: rubydistros/windows-2019:3.0
+
+- label: run-specs-ruby-3.1-windows
+ commands:
+ - .expeditor/run_windows_tests.ps1
+
expeditor:
executor:
docker:
host_os: windows
+ shell: ["powershell", "-Command"]
+ image: rubydistros/windows-2019:3.1 \ No newline at end of file