summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-04-12 09:01:31 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-04-12 09:01:31 -0700
commit9f39d2c7a3ee3bba68b29027b524a385ef88ca07 (patch)
treee4207ed235541480e3e46d59592e6951d69a3cd2
parent5e2e8b332d2151c1f5c057cdd6b6c6e4126b54f2 (diff)
downloadchef-zero-jfm/chef-zero.tar.gz
verifying Ruby 3.1 compatibility on Windowsjfm/chef-zero
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--.expeditor/run_windows_tests.ps117
-rw-r--r--.expeditor/verify.pipeline.yml26
2 files changed, 43 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
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 36b10a9..b6ab36a 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -37,3 +37,29 @@ steps:
executor:
docker:
image: ruby:3.1
+
+- label: run-specs-ruby-3.0-windows
+ command:
+ - .expeditor/run_windows_tests.ps1
+ expeditor:
+ executor:
+ docker:
+ host_os: windows
+ image: rubydistros/windows-2019:3.0
+ environment:
+ - FORCE_FFI_YAJL=ext
+ - CHEF_LICENSE=accept-no-persist
+ shell: ["powershell", "-Command"]
+
+- label: run-specs-ruby-3.1-windows
+ command:
+ - .expeditor/run_windows_tests.ps1
+ expeditor:
+ executor:
+ docker:
+ host_os: windows
+ image: rubydistros/windows-2019:3.1
+ environment:
+ - FORCE_FFI_YAJL=ext
+ - CHEF_LICENSE=accept-no-persist
+ shell: ["powershell", "-Command"]