Skip to content

Commit

Permalink
Add Windows verification tests to Buildkite
Browse files Browse the repository at this point in the history
Signed-off-by: Jaymala Sinha <[email protected]>
  • Loading branch information
Jaymala Sinha committed Oct 2, 2019
1 parent ac881b7 commit a3ca9e5
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
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"]

0 comments on commit a3ca9e5

Please sign in to comment.