diff options
author | John McCrae <jmccrae@chf.io> | 2022-04-04 15:12:49 -0700 |
---|---|---|
committer | John McCrae <jmccrae@chf.io> | 2022-04-04 15:12:49 -0700 |
commit | b422d958965972972a671b7d1bba61fa343f8175 (patch) | |
tree | 026d24f6e96c60f51148c8ebbc0f949e1155cdfb /.expeditor | |
parent | 7c2afb88a4fb34b5515bb1881f335b945b8b0f04 (diff) | |
download | mixlib-shellout-b422d958965972972a671b7d1bba61fa343f8175.tar.gz |
Hard Coding the gems in the gemfile to overcome a Ruby 3.1 bug
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to '.expeditor')
-rw-r--r-- | .expeditor/config.yml | 1 | ||||
-rw-r--r-- | .expeditor/run_windows_tests.ps1 | 17 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 31 |
3 files changed, 34 insertions, 15 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml index f550cf8..5a4cd54 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -9,6 +9,7 @@ slack: rubygems: - mixlib-shellout - mixlib-shellout-universal-mingw32 + - mixlib-shellout-universal-mingw-ucrt github: # This deletes the GitHub PR branch after successfully merged into the release branch 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 6535e4f..5ac87f0 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -11,53 +11,54 @@ expeditor: steps: -- label: run-lint-and-specs-ruby-2.4 +- label: run-lint-and-specs-ruby-2.5 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.4-buster + image: ruby:2.5 -- label: run-lint-and-specs-ruby-2.5 +- label: run-lint-and-specs-ruby-2.6 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.5-buster + image: ruby:2.6 -- label: run-lint-and-specs-ruby-2.6 +- label: run-lint-and-specs-ruby-2.7 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.6-buster + image: ruby:2.7 -- label: run-lint-and-specs-ruby-2.7 +- label: run-lint-and-specs-ruby-3.0 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:2.7-buster + image: ruby:3.0 -- label: run-lint-and-specs-ruby-3.0 +- label: run-lint-and-specs-ruby-3.1 command: - .expeditor/run_linux_tests.sh rake expeditor: executor: docker: - image: ruby:3.0-buster + 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: host_os: windows - user: 'NT AUTHORITY\SYSTEM' + shell: ["powershell", "-Command"] + image: rubydistros/windows-2019:3.1 + user: "NT AUTHORITY\\SYSTEM" |