diff options
Diffstat (limited to '.expeditor')
-rw-r--r-- | .expeditor/buildkite/verify.ps1 | 29 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 26 |
2 files changed, 40 insertions, 15 deletions
diff --git a/.expeditor/buildkite/verify.ps1 b/.expeditor/buildkite/verify.ps1 index 4e94454..106e1bf 100644 --- a/.expeditor/buildkite/verify.ps1 +++ b/.expeditor/buildkite/verify.ps1 @@ -2,24 +2,37 @@ 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" -$Env:RUBY_PLATFORM="windows" +echo "--- Install make and ruby2.devkit" +choco install make ruby ruby2.devkit -y +refreshenv + +echo - c:\tools\ruby26 > c:\tools\Devkit2\config.yml +ruby c:\tools\Devkit2\dk.rb install + +choco install msys2 -y +refreshenv + +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) ruby -v bundle --version gem -v -echo "--- bundle install" -bundle install --jobs=7 --retry=3 --without docs debug +C:\tools\ruby26\ridk_use\ridk.cmd install 3 +C:\tools\ruby26\ridk_use\ridk.cmd enable -echo "--- bundle env" -bundle env +echo "--- gem install bundler" +gem install bundler + +echo "--- bundle install" +bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle echo "+++ bundle exec rake compile" bundle exec rake compile -echo "+++ bundle exec rake compile" +echo "+++ bundle exec rake spec" bundle exec rake spec exit $LASTEXITCODE
\ No newline at end of file diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 8237b99..0e08819 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -5,21 +5,27 @@ steps: - ruby --version - bundle --version - gem update --system - - bundle install --jobs=7 --retry=3 --without docs development + - bundle install --without development_extras development --jobs 3 --retry 3 --path vendor/bundle + - gem install ffi json psych + - export FORCE_FFI_YAJL="ffi" - bundle exec rake + soft_fail: + - exit_status: 1 expeditor: executor: docker: image: ruby:2.4 environment: - BUNDLE_GEMFILE=/workdir/Gemfile + - FORCE_FFI_YAJL="ffi" - label: ":ruby: 2.5" command: - ruby --version - bundle --version - gem update --system - - bundle install --jobs=7 --retry=3 --without docs development + - bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle + - gem install yajl-ruby json psych - bundle exec rake expeditor: executor: @@ -27,13 +33,15 @@ steps: image: ruby:2.5 environment: - BUNDLE_GEMFILE=/workdir/Gemfile + - FORCE_FFI_YAJL="ext" - label: ":ruby: 2.6" command: - ruby --version - bundle --version - gem update --system - - bundle install --jobs=7 --retry=3 --without docs development + - bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle + - gem install yajl-ruby json psych - bundle exec rake expeditor: executor: @@ -42,15 +50,19 @@ steps: privileged: true environment: - BUNDLE_GEMFILE=/workdir/Gemfile + - FORCE_FFI_YAJL="ext" - label: run-lint-and-specs-jruby command: - ruby --version - bundle --version - gem update --system - - apt-get update -y && apt-get install -y git - - bundle install --jobs=7 --retry=3 --without docs development + - apt-get update -y && apt-get install -y git make gcc + - bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle + - gem install ffi json psych - bundle exec rake + soft_fail: + - exit_status: 1 expeditor: executor: docker: @@ -59,14 +71,14 @@ steps: environment: - BUNDLE_GEMFILE=/workdir/Gemfile - RUBY_PLATFORM="jruby" + - FORCE_FFI_YAJL="ffi" - label: run-specs-windows command: - /workdir/.expeditor/buildkite/verify.ps1 + timeout_in_minutes: 20 expeditor: executor: docker: host_os: windows - environment: - - RUBY_PLATFORM="windows" shell: ["powershell", "-Command"] |