--- expeditor: cached_folders: - vendor defaults: buildkite: retry: automatic: limit: 1 timeout_in_minutes: 45 steps: ######################################################################### # Tests Ruby 2.7 ######################################################################### - label: "Integration Ubuntu 18.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.7 privileged: true - label: "Functional Ubuntu 18.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y cron locales # needed for functional tests to pass - cd /workdir; bundle config set --local without omnibus_package ruby_prof - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.7 privileged: true - label: "Unit Ubuntu 18.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package ruby_prof - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.7 - label: "Integration Ubuntu 20.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/ubuntu-20.04:2.7 privileged: true - label: "Functional Ubuntu 20.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y cron locales # needed for functional tests to pass - cd /workdir; bundle config set --local without omnibus_package ruby_prof - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/ubuntu-20.04:2.7 privileged: true - label: "Unit Ubuntu 20.04 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package ruby_prof - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/ubuntu-20.04:2.7 - label: "Integration CentOS 7 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/centos-7:2.7 privileged: true - label: "Functional CentOS 7 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - yum install -y crontabs e2fsprogs - cd /workdir; bundle config set --local without omnibus_package ruby_prof - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/centos-7:2.7 privileged: true - label: "Unit CentOS 7 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package ruby_prof - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/centos-7:2.7 - label: "Integration openSUSE 15 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat - cd /workdir; bundle config set --local without omnibus_package - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/opensuse-15:2.7 privileged: true - label: "Functional openSUSE 15 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cronie insserv-compat - cd /workdir; bundle config set --local without omnibus_package ruby_prof - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/opensuse-15:2.7 privileged: true - label: "Unit openSUSE 15 :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat - bundle config set --local without omnibus_package ruby_prof - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/opensuse-15:2.7 - label: "Integration Fedora :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle config set --local without omnibus_package - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/fedora-latest:2.7 privileged: true - label: "Functional Fedora :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - dnf install -y crontabs e2fsprogs - cd /workdir; bundle config set --local without omnibus_package ruby_prof - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/fedora-latest:2.7 privileged: true environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist - label: "Unit Fedora :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package ruby_prof - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/fedora-latest:2.7 - 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: 2.7" commands: - /workdir/.expeditor/scripts/bk_win_integration.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:2.7 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] - label: "Chocolatey Windows :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_run_choco.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:2.7 shell: ["powershell", "-Command"] - label: "Unit Windows :ruby: 2.7" commands: - /workdir/.expeditor/scripts/bk_win_unit.ps1 expeditor: executor: docker: host_os: windows image: rubydistros/windows-2019:2.7 environment: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist shell: ["powershell", "-Command"] ######################################################################### # Tests Ruby 2.6 ######################################################################### - label: "Integration :ruby: 2.6" commands: - gem install bundler -v 2.1.4 # match Ruby 2.7 bundler - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:integration expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.6 privileged: true - label: "Functional :ruby: 2.6" commands: - gem install bundler -v 2.1.4 # match Ruby 2.7 bundler - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y cron locales net-tools # needed for functional tests to pass - bundle config set --local without omnibus_package - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:functional expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.6 privileged: true - label: "Unit :ruby: 2.6" commands: - gem install bundler -v 2.1.4 # match Ruby 2.7 bundler - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle config set --local without omnibus_package - bundle install --jobs=3 --retry=3 --path=vendor/bundle - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: docker: image: rubydistros/ubuntu-18.04:2.6 ######################################################################### # HABITAT TESTING ######################################################################### - 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"]