<commit_before>---
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<commit_msg>Added a new repository to overcome issues<commit_after>---
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 addrepo --check --priority 50 --refresh --name "Chefzypper-repo" "https://mirror.fcix.net/opensuse/distribution/leap/15.3/repo/oss/" "chefzypper"
    - 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 addrepo --check --priority 50 --refresh --name "Chefzypper-repo" "https://mirror.fcix.net/opensuse/distribution/leap/15.3/repo/oss/" "chefzypper"
    - 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 addrepo --check --priority 50 --refresh --name "Chefzypper-repo" "https://mirror.fcix.net/opensuse/distribution/leap/15.3/repo/oss/" "chefzypper"
    - 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
{'fraction_non_alphanumeric': 0.12366567424297437, 'fraction_numerical': 0.02374555224747658, 'mean_word_length': 2.567875647668394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5692070', 'n_tokens_mistral': 4825, 'n_tokens_neox': 4380, 'n_words': 1209}