diff options
author | skeshari12 <skeshari@msystechnologies.com> | 2022-04-12 14:35:15 +0530 |
---|---|---|
committer | skeshari12 <skeshari@msystechnologies.com> | 2022-04-12 14:35:15 +0530 |
commit | 66ca90cec495a545638d65ca307dee35b382d322 (patch) | |
tree | bbe0ccfe35da73a993263f2661aadfa2cb74d526 /.expeditor/buildkite | |
parent | 2ac7f207c0850a7621880ea03c85c509072fff85 (diff) | |
download | ffi-yajl-66ca90cec495a545638d65ca307dee35b382d322.tar.gz |
add ruby 3.1 in verfiy pipeline
Signed-off-by: skeshari12 <skeshari@msystechnologies.com>
Diffstat (limited to '.expeditor/buildkite')
-rwxr-xr-x | .expeditor/buildkite/run_linux_tests.sh | 14 | ||||
-rw-r--r-- | .expeditor/buildkite/run_windows_tests.ps1 | 20 | ||||
-rw-r--r-- | .expeditor/buildkite/verify.ps1 | 20 |
3 files changed, 44 insertions, 10 deletions
diff --git a/.expeditor/buildkite/run_linux_tests.sh b/.expeditor/buildkite/run_linux_tests.sh new file mode 100755 index 0000000..3774734 --- /dev/null +++ b/.expeditor/buildkite/run_linux_tests.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# + +set -evx + +echo "---Bundle install---" +ruby --version +bundle --version +gem update --system +bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle +gem install yajl-ruby json psych + +echo "---Bundle Exec---" +bundle exec rake
\ No newline at end of file diff --git a/.expeditor/buildkite/run_windows_tests.ps1 b/.expeditor/buildkite/run_windows_tests.ps1 new file mode 100644 index 0000000..23f02c3 --- /dev/null +++ b/.expeditor/buildkite/run_windows_tests.ps1 @@ -0,0 +1,20 @@ +# Stop script execution when a non-terminating error occurs +$ErrorActionPreference = "Stop" + +# This will run ruby test on windows platform + +echo "--- Install make " +choco install make --source=cygwin + +Write-Output "--- Bundle install" +ruby --version +bundler --version +gem update --system +bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle +gem install yajl-ruby json psych +If ($lastexitcode -ne 0) { Exit $lastexitcode } + +Write-Output "--- Bundle Execute" +bundle exec rake compile +bundle exec rake spec +If ($lastexitcode -ne 0) { Exit $lastexitcode }
\ No newline at end of file diff --git a/.expeditor/buildkite/verify.ps1 b/.expeditor/buildkite/verify.ps1 index 106e1bf..c72188b 100644 --- a/.expeditor/buildkite/verify.ps1 +++ b/.expeditor/buildkite/verify.ps1 @@ -2,37 +2,37 @@ echo "--- system details" $Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize -echo "--- Install make and ruby2.devkit" -choco install make ruby ruby2.devkit -y +echo "--- Install make" +choco install make -y refreshenv - -echo - c:\tools\ruby26 > c:\tools\Devkit2\config.yml -ruby c:\tools\Devkit2\dk.rb install +If ($lastexitcode -ne 0) { Exit $lastexitcode } choco install msys2 -y refreshenv +If ($lastexitcode -ne 0) { Exit $lastexitcode } Write-Output 'Updating PATH' $env:PATH = "C:\tools\ruby26\bin;C:\tools\DevKit2\mingw\bin;C:\tools\DevKit2\bin;" + $env:PATH [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) +If ($lastexitcode -ne 0) { Exit $lastexitcode } ruby -v bundle --version gem -v - -C:\tools\ruby26\ridk_use\ridk.cmd install 3 -C:\tools\ruby26\ridk_use\ridk.cmd enable +If ($lastexitcode -ne 0) { Exit $lastexitcode } echo "--- gem install bundler" gem install bundler +If ($lastexitcode -ne 0) { Exit $lastexitcode } echo "--- bundle install" bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle +If ($lastexitcode -ne 0) { Exit $lastexitcode } echo "+++ bundle exec rake compile" bundle exec rake compile +If ($lastexitcode -ne 0) { Exit $lastexitcode } echo "+++ bundle exec rake spec" bundle exec rake spec - -exit $LASTEXITCODE
\ No newline at end of file +If ($lastexitcode -ne 0) { Exit $lastexitcode }
\ No newline at end of file |