--- expeditor: cached_folders: - vendor defaults: buildkite: retry: automatic: limit: 1 timeout_in_minutes: 60 steps: ######################################################################### # Tests Ruby 3.1 ######################################################################### - label: "Integration Ubuntu 18.04 :ruby: 3.1" 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.1 privileged: true - label: "Functional Ubuntu 18.04 :ruby: 3.1" 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.1 privileged: true - label: "Unit Ubuntu 18.04 :ruby: 3.1" 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.1 - label: "Integration Ubuntu 20.04 :ruby: 3.1" 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.1 privileged: true - label: "Functional Ubuntu 20.04 :ruby: 3.1" 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.1 privileged: true - label: "Unit Ubuntu 20.04 :ruby: 3.1" 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.1 - label: "Integration CentOS 7 :ruby: 3.1" 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.1 privileged: true - label: "Functional CentOS 7 :ruby: 3.1" 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.1 privileged: true - label: "Unit CentOS 7 :ruby: 3.1" 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.1 - label: "Integration openSUSE 15 :ruby: 3.1" 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.1 privileged: true - label: "Functional openSUSE 15 :ruby: 3.1" 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.1 privileged: true - label: "Unit openSUSE 15 :ruby: 3.1" 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.1 - label: "Integration AlmaLinux 8 :ruby: 3.1" 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/almalinux-8:3.1 privileged: true - label: "Functional AlmaLinux 8 :ruby: 3.1" 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/almalinux-8:3.1 privileged: true environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist - label: "Unit AlmaLinux 8 :ruby: 3.1" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - dnf install dnf-plugins-core -y - dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y - dnf config-manager --enable epel - dnf config-manager --set-enabled powertools - 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/almalinux-8:3.1 - label: "Functional Windows :ruby: 3.1" commands: - .expeditor/scripts/bk_win_functional.ps1 expeditor: executor: windows: privileged: true single-use: true shell: ["powershell", "-Command"] - label: "Integration Windows :ruby: 3.1" commands: - /workdir/.expeditor/scripts/bk_win_integration.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:3.1 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] - label: "Unit Windows :ruby: 3.1" commands: - /workdir/.expeditor/scripts/bk_win_unit.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:3.1 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] ######################################################################### # EXTERNAL GEM TESTING ######################################################################### - label: "chef-zero gem :ruby: 3.1" 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.1 environment: - PEDANT_OPTS=--skip-oc_id - CHEF_FS=true - label: "cheffish gem :ruby: 3.1" 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.1 - label: "chefspec gem :ruby: 3.1" 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.1 - label: "knife-windows gem :ruby: 3.1" 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.1 - label: "berkshelf gem :ruby: 3.1" 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.1 - 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: 0 expeditor: executor: windows: privileged: true single-use: true shell: ["powershell", "-Command"]