diff options
author | Jaymala Sinha <jsinha@chef.io> | 2019-10-01 11:00:46 -0400 |
---|---|---|
committer | Jaymala Sinha <jsinha@chef.io> | 2019-10-03 12:42:03 -0400 |
commit | 9a2c739e25e938ce9d4e78a4cb3e36e425a24432 (patch) | |
tree | 6a05aef31efae9b3a899884413a357c784badbdc | |
parent | ef9a37c9d51ba72f945176c2bb25ce425f34692c (diff) | |
download | mixlib-shellout-9a2c739e25e938ce9d4e78a4cb3e36e425a24432.tar.gz |
Add Windows verification tests to Buildkite
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
-rw-r--r-- | .expeditor/buildkite/verify.ps1 | 22 | ||||
-rw-r--r-- | .expeditor/config.yml | 3 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 9 |
3 files changed, 33 insertions, 1 deletions
diff --git a/.expeditor/buildkite/verify.ps1 b/.expeditor/buildkite/verify.ps1 new file mode 100644 index 0000000..55a3351 --- /dev/null +++ b/.expeditor/buildkite/verify.ps1 @@ -0,0 +1,22 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize + +# Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin") +$Env:Path="C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\ruby26\bin;C:\ci-studio-common\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Go\bin;C:\Users\ContainerAdministrator\go\bin" + + +ruby -v +bundle --version +gem -v + +echo "--- bundle install" +bundle install --jobs=7 --retry=3 --without docs debug + +echo "--- bundle env" +bundle env + +echo "+++ bundle exec rspec" +bundle exec rspec + +exit $LASTEXITCODE
\ No newline at end of file diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 7032e6c..bdb85fd 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -2,7 +2,8 @@ --- # Slack channel in Chef Software slack to send notifications about build failures, etc slack: - notify_channel: chef-found-notify + notify_channel: + - chef-found-notify # This publish is triggered by the `built_in:publish_rubygems` artifact_action. rubygems: diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index a29049b..7ffd813 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -49,3 +49,12 @@ steps: executor: docker: image: ruby:2.6-stretch + +- label: run-specs-windows + command: + - /workdir/.expeditor/buildkite/verify.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] |