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

steps:

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

- label: cookstyle-generator-cb-tests-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh "rake style:cookstyle"
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

- label: chefstyle-tests-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh "rake style:chefstyle"
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

- label: hab-package-build-test
  command:
    - habitat/scripts/ci_integration_tests.sh
  expeditor:
    executor:
      docker:
        privileged: true

- label: "run-specs :windows:"
  command:
    - bundle config --local path vendor/bundle
    - bundle install --jobs=7 --retry=3
    - bundle exec rake spec
  expeditor:
    executor:
      docker:
        host_os: windows
        environment:
          - FORCE_FFI_YAJL=ext
          - SPEC_OPTS=--format progress
          - CHEF_LICENSE=accept-no-persist
---
expeditor:
  cached_folders:
    - vendor
  defaults:
    buildkite:
      retry:
        automatic:
          limit: 1
      timeout_in_minutes: 30

steps:

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

- label: cookstyle-generator-cb-tests-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh "rake style:cookstyle"
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

- label: chefstyle-tests-ruby-2.6
  command:
    - .expeditor/run_linux_tests.sh "rake style:chefstyle"
  expeditor:
    executor:
      docker:
        image: ruby:2.6-buster

# - label: hab-package-build-test
#   command:
#     - habitat/scripts/ci_integration_tests.sh
#   expeditor:
#     executor:
#       docker:
#         privileged: true

- label: "run-specs :windows:"
  command:
    - bundle config --local path vendor/bundle
    - bundle install --jobs=7 --retry=3
    - bundle exec rake spec
  expeditor:
    executor:
      docker:
        host_os: windows
        environment:
          - FORCE_FFI_YAJL=ext
          - SPEC_OPTS=--format progress
          - CHEF_LICENSE=accept-no-persist
Disable the hab verify tests for now
Disable the hab verify tests for now

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
