diff options
author | Vikram Karve <vikram.karve@progress.com> | 2022-07-15 23:19:03 +0530 |
---|---|---|
committer | Vikram Karve <vikram.karve@progress.com> | 2022-07-26 13:02:38 +0530 |
commit | 6db2832b202d468b9cd1f249a345399bd3470c76 (patch) | |
tree | b5deef4c01cb76ce72931a957e32d2ce5d6fac8a | |
parent | 43b19b37f53c58b9ec696cfe29aa8572f2f0e6b4 (diff) | |
download | chef-6db2832b202d468b9cd1f249a345399bd3470c76.tar.gz |
cleanup
Signed-off-by: Vikram Karve <vikram.karve@progress.com>
-rw-r--r-- | .expeditor/verify.pipeline.yml | 379 | ||||
-rw-r--r-- | habitat/plan.ps1 | 6 |
2 files changed, 379 insertions, 6 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index f30b69e4f4..14b168661f 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -11,6 +11,385 @@ expeditor: 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.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: 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.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 diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index c5dadc7b0f..dadcbfde4b 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -94,12 +94,6 @@ function Invoke-Build { } } Write-BuildLine " ** Running the chef project's 'rake install' to install the path-based gems so they look like any other installed gem." - #bundle exec rake install:local # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler - #if (-not $?) { - # Write-Warning " -- That didn't work. Let's try again." - # bundle exec rake install:local # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler - # if (-not $?) { throw "unable to install the gems that live in directories within this repo" } - #} $install_attempt = 0 do { Start-Sleep -Seconds 5 |