---
expeditor:
  cached_folders:
    - vendor
  defaults:
    buildkite:
      retry:
        automatic:
          limit: 1
      timeout_in_minutes: 30

steps:
- label: lint-chefstyle
  command:
    - .expeditor/run_linux_tests.sh "rake style"
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-ohai
  command:
    - .expeditor/run_linux_tests.sh "bundle exec ohai"
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-specs-ruby-2.5
  command:
    - .expeditor/run_linux_tests.sh rspec
  expeditor:
    executor:
      docker:
        image: ruby:2.5-buster

- label: run-specs-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh rspec
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

- label: run-specs-ruby-2.7
  command:
    - .expeditor/run_linux_tests.sh rspec
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-specs-windows
  command:
    - bundle config --local path vendor/bundle
    - bundle install --jobs=7 --retry=3 --without=profile
    - bundle exec rake spec
  expeditor:
    executor:
      docker:
        host_os: windows

---
expeditor:
  cached_folders:
    - vendor
  defaults:
    buildkite:
      retry:
        automatic:
          limit: 1
      timeout_in_minutes: 30

steps:
- label: lint-chefstyle
  command:
    - .expeditor/run_linux_tests.sh "rake style"
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-ohai
  command:
    - .expeditor/run_linux_tests.sh "bundle exec ohai"
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-specs-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh rspec
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

- label: run-specs-ruby-2.7
  command:
    - .expeditor/run_linux_tests.sh rspec
  expeditor:
    executor:
      docker:
        image: ruby:2.7-buster

- label: run-specs-windows
  command:
    - bundle config --local path vendor/bundle
    - bundle install --jobs=7 --retry=3 --without=profile
    - bundle exec rake spec
  expeditor:
    executor:
      docker:
        host_os: windows

Remove ruby 2.5 from CI.
Remove ruby 2.5 from CI.

Signed-off-by: Pete Higgins <e3b6cda228242c30b711ac17cb264f1dbadfd0b6@peterhiggins.org>
