diff --git a/.expeditor/buildkite/verify-accept.ps1 b/.expeditor/buildkite/verify-accept.ps1 new file mode 100644 index 000000000..93debfb6f --- /dev/null +++ b/.expeditor/buildkite/verify-accept.ps1 @@ -0,0 +1,20 @@ +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 +bundle env + +echo "--- bundle install" +bundle install --jobs=7 --retry=3 --without docs debug + +echo "+++ bundle exec rake acceptance " +bundle exec cucumber --color --format progress --strict + +exit $LASTEXITCODE \ No newline at end of file diff --git a/.expeditor/buildkite/verify-funct.ps1 b/.expeditor/buildkite/verify-funct.ps1 new file mode 100644 index 000000000..64b7db068 --- /dev/null +++ b/.expeditor/buildkite/verify-funct.ps1 @@ -0,0 +1,19 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize + +$Env:Path +=";C:\Program Files\Git\usr\bin" + +ruby -v +bundle --version +gem -v +bundle env +tar --version + +echo "--- bundle install" +bundle install --jobs=7 --retry=3 --without docs debug + +echo "+++ bundle exec rake functional " +bundle exec rake functional + +exit $LASTEXITCODE \ No newline at end of file diff --git a/.expeditor/buildkite/verify-unit.ps1 b/.expeditor/buildkite/verify-unit.ps1 new file mode 100644 index 000000000..45ab012fb --- /dev/null +++ b/.expeditor/buildkite/verify-unit.ps1 @@ -0,0 +1,20 @@ +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 +bundle env + +echo "--- bundle install" +bundle install --jobs=7 --retry=3 --without docs debug + +echo "+++ bundle exec rake unit " +bundle exec rake unit + +exit $LASTEXITCODE \ No newline at end of file diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 1a3dd9e7c..0babe44a6 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -26,3 +26,30 @@ steps: executor: docker: image: ruby:2.6-stretch + +- label: run-specs-windows-unit-2.6 + command: + - /workdir/.expeditor/buildkite/verify-unit.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + +- label: run-specs-windows-functional-2.6 + command: + - /workdir/.expeditor/buildkite/verify-funct.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] + +- label: run-specs-windows-acceptance-2.6 + command: + - /workdir/.expeditor/buildkite/verify-accept.ps1 + expeditor: + executor: + docker: + host_os: windows + shell: ["powershell", "-Command"] \ No newline at end of file