--- expeditor: cached_folders: - vendor defaults: buildkite: retry: automatic: limit: 1 timeout_in_minutes: 45 steps: ######################################################################### # Tests Ruby 2.6 ######################################################################### - label: "chef-utils Unit :ruby: 2.6" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd chef-utils - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.6 - label: "chef-config Unit :ruby: 2.6" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd chef-config - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.6 ######################################################################### # Tests Ruby 3.0 ######################################################################### - label: "Integration Ubuntu 18.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 privileged: true - label: "Functional Ubuntu 18.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y cron locales libarchive-dev # needed for functional tests to pass - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 privileged: true - label: "Unit Ubuntu 18.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y libarchive-dev - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 - label: "Integration Ubuntu 20.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/ubuntu-20.04:3.0 privileged: true - label: "Functional Ubuntu 20.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y cron locales libarchive-dev # needed for functional tests to pass - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/ubuntu-20.04:3.0 privileged: true - label: "Unit Ubuntu 20.04 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y libarchive-dev - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/ubuntu-20.04:3.0 - label: "Integration CentOS 7 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/centos-7:3.0 privileged: true - label: "Functional CentOS 7 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - yum install -y crontabs e2fsprogs - yum install -y libarchive-devel - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/centos-7:3.0 privileged: true - label: "Unit CentOS 7 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - yum install -y libarchive-devel - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/centos-7:3.0 - label: "Integration openSUSE 15 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/opensuse-15:3.0 privileged: true - label: "Functional openSUSE 15 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cronie insserv-compat - zypper install -y libarchive-devel - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/opensuse-15:3.0 privileged: true - label: "Unit openSUSE 15 :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat libarchive-devel - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/opensuse-15:3.0 - label: "Integration Fedora :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/fedora-latest:3.0 privileged: true - label: "Functional Fedora :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - dnf install -y crontabs e2fsprogs - cd /workdir; bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/fedora-latest:3.0 privileged: true environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist - label: "Unit Fedora :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - dnf install -y libarchive-devel - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/fedora-latest:3.0 - label: "Functional Windows :ruby: 2.7" commands: - .expeditor/scripts/bk_win_functional.ps1 expeditor: executor: windows: privileged: true single-use: true shell: ["powershell", "-Command"] - label: "Integration Windows :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_win_integration.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:3.0 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] - label: "Unit Windows :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_win_unit.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:3.0 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] ######################################################################### # EXTERNAL GEM TESTING ######################################################################### - label: "chef-zero gem :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec tasks/bin/run_external_test chef/chef-zero main rake pedant expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 environment: - PEDANT_OPTS=--skip-oc_id - CHEF_FS=true - label: "cheffish gem :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec tasks/bin/run_external_test chef/cheffish main rake spec expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 - label: "chefspec gem :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec tasks/bin/run_external_test chefspec/chefspec main rake expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 - label: "knife-windows gem :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle config set --local path 'vendor/bundle' - bundle install --jobs=3 --retry=3 - bundle exec tasks/bin/run_external_test chef/knife-windows main rake spec expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 - label: "berkshelf gem :ruby: 3.0" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y graphviz - bundle config set --local without omnibus_package - bundle install --jobs=3 --retry=3 - bundle exec tasks/bin/run_external_test berkshelf/berkshelf main rake expeditor: executor: docker: image: rubydistros/ubuntu-18.04:3.0 - label: ":habicat: Linux plan" commands: - sudo ./.expeditor/scripts/install-hab.sh 'x86_64-linux' - sudo ./.expeditor/scripts/verify-plan.sh timeout_in_minutes: 60 expeditor: executor: linux: privileged: true single-use: true - label: ":habicat: Linux plan (kernel2)" commands: - sudo ./.expeditor/scripts/install-hab.sh 'x86_64-linux-kernel2' - sudo ./.expeditor/scripts/verify-plan.sh timeout_in_minutes: 60 expeditor: executor: linux: privileged: true single-use: true - label: ":habicat: Windows plan" commands: - ./.expeditor/scripts/verify-plan.ps1 timeout_in_minutes: 60 expeditor: executor: windows: privileged: true single-use: true shell: ["powershell", "-Command"]