Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows verification tests to Buildkite #904

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .expeditor/buildkite/verify-accept.ps1
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions .expeditor/buildkite/verify-funct.ps1
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .expeditor/buildkite/verify-unit.ps1
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]