diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-12-28 17:14:15 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-12-30 12:16:03 -0800 |
commit | 9a24cd522f2922c71eb08be5c9e6563a81d337e6 (patch) | |
tree | 7b4ec20fa70539791ca89dc02489aeed26f73b45 /.expeditor | |
parent | 0f4f8f406f1be0072326fd1d8453e32a28403a72 (diff) | |
download | chef-9a24cd522f2922c71eb08be5c9e6563a81d337e6.tar.gz |
Move all the CI scripts into the .expeditor dir
There's no reason to store all our test stuff at the top level when this all used by the Expeditor / BK jobs
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to '.expeditor')
-rw-r--r-- | .expeditor/habitat-test.pipeline.yml | 6 | ||||
-rwxr-xr-x | .expeditor/scripts/bk_container_prep.sh | 21 | ||||
-rwxr-xr-x | .expeditor/scripts/bk_linux_exec.sh | 41 | ||||
-rw-r--r-- | .expeditor/scripts/bk_run_choco.ps1 | 9 | ||||
-rw-r--r-- | .expeditor/scripts/bk_win_functional.ps1 | 43 | ||||
-rw-r--r-- | .expeditor/scripts/bk_win_integration.ps1 | 12 | ||||
-rw-r--r-- | .expeditor/scripts/bk_win_prep.ps1 | 20 | ||||
-rw-r--r-- | .expeditor/scripts/bk_win_unit.ps1 | 9 | ||||
-rw-r--r-- | .expeditor/scripts/ensure-minimum-viable-hab.ps1 | 8 | ||||
-rwxr-xr-x | .expeditor/scripts/install-hab.sh | 24 | ||||
-rw-r--r-- | .expeditor/scripts/verify-plan.ps1 | 37 | ||||
-rwxr-xr-x | .expeditor/scripts/verify-plan.sh | 38 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 96 |
13 files changed, 313 insertions, 51 deletions
diff --git a/.expeditor/habitat-test.pipeline.yml b/.expeditor/habitat-test.pipeline.yml index 7d2cc8f653..859d4eb1f1 100644 --- a/.expeditor/habitat-test.pipeline.yml +++ b/.expeditor/habitat-test.pipeline.yml @@ -11,7 +11,7 @@ steps: - label: ":linux: Validate Linux" commands: - - sudo ./scripts/ci/install-hab.sh x86_64-linux + - sudo ./.expeditor/scripts/install-hab.sh x86_64-linux - 'echo "--- :hammer_and_wrench: Installing $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUX"' - sudo hab pkg install $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUX - sudo ./habitat/tests/test.sh $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUX @@ -23,7 +23,7 @@ steps: - label: ":linux: Validate Linux (kernel2)" commands: - - sudo ./scripts/ci/install-hab.sh x86_64-linux-kernel2 + - sudo ./.expeditor/scripts/install-hab.sh x86_64-linux-kernel2 - 'echo "--- :hammer_and_wrench: Installing $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUXKERNEL2"' - sudo hab pkg install $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUXKERNEL2 - sudo ./habitat/tests/test.sh $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64LINUXKERNEL2 @@ -35,7 +35,7 @@ steps: - label: ":windows: Validate Habitat Builds of Chef Infra" commands: - - powershell -File ./scripts/ci/ensure-minimum-viable-hab.ps1 + - powershell -File ./.expeditor/scripts/ensure-minimum-viable-hab.ps1 - 'Write-Host "--- :hammer_and_wrench: Installing $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64WINDOWS"' - hab pkg install $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64WINDOWS - powershell -File ./habitat/tests/test.ps1 -PackageIdentifier $EXPEDITOR_PKG_IDENTS_CHEFINFRACLIENTX86_64WINDOWS diff --git a/.expeditor/scripts/bk_container_prep.sh b/.expeditor/scripts/bk_container_prep.sh new file mode 100755 index 0000000000..949f75c0d3 --- /dev/null +++ b/.expeditor/scripts/bk_container_prep.sh @@ -0,0 +1,21 @@ +# This script gets a container ready to run our various tests in BuildKite + +echo "--- preparing..." + +export FORCE_FFI_YAJL="ext" +export CHEF_LICENSE="accept-no-persist" +export BUNDLE_GEMFILE="/workdir/Gemfile" + +# make sure we have the network tools in place for various network specs +if [ -f /etc/debian_version ]; then + touch /etc/network/interfaces +fi + +# make sure we have the omnibus_overrides specified version of rubygems / bundler +echo "--- Install proper bundler" +gem uninstall bundler -a -x || true +gem install bundler -v $(grep :bundler omnibus_overrides.rb | cut -d'"' -f2) +bundle --version +rm -f .bundle/config + +echo "+++ Run tests" diff --git a/.expeditor/scripts/bk_linux_exec.sh b/.expeditor/scripts/bk_linux_exec.sh new file mode 100755 index 0000000000..415f646a3c --- /dev/null +++ b/.expeditor/scripts/bk_linux_exec.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Enable IPv6 in docker +echo "--- Enabling ipv6 on docker" +sudo systemctl stop docker +dockerd_config="/etc/docker/daemon.json" +sudo echo "$(jq '. + {"ipv6": true, "fixed-cidr-v6": "2001:2019:6002::/80", "ip-forward": false}' $dockerd_config)" > $dockerd_config +sudo systemctl start docker + +# Install C and C++ +echo "--- Installing package deps" +sudo yum install -y gcc gcc-c++ openssl-devel readline-devel zlib-devel + +# Install omnibus-toolchain for git bundler and gem +echo "--- Installing omnibus toolchain" +curl -fsSL https://chef.io/chef/install.sh | sudo bash -s -- -P omnibus-toolchain + +# Set Environment Variables +export BUNDLE_GEMFILE=$PWD/kitchen-tests/Gemfile +export FORCE_FFI_YAJL=ext +export CHEF_LICENSE="accept-silent" +export PATH=$PATH:/opt/omnibus-toolchain/embedded/bin + +# Update Gems +echo "--- Installing Gems" +echo 'gem: --no-document' >> ~/.gemrc +sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER ) +/opt/omnibus-toolchain/bin/bundle install --jobs=3 --retry=3 --path=../vendor/bundle + +echo "--- Config information" + +echo "!!!! RUBY VERSION !!!!" +ruby --version +echo "!!!! BUNDLE LOCATION !!!!" +which bundle +echo "!!!! DOCKER VERSION !!!!" +docker version +echo "!!!! DOCKER STATUS !!!!" +sudo service docker status + +echo "+++ Running tests"
\ No newline at end of file diff --git a/.expeditor/scripts/bk_run_choco.ps1 b/.expeditor/scripts/bk_run_choco.ps1 new file mode 100644 index 0000000000..49f9186701 --- /dev/null +++ b/.expeditor/scripts/bk_run_choco.ps1 @@ -0,0 +1,9 @@ +$CurrentDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent +$PrepScript = Join-Path $CurrentDirectory "bk_win_prep.ps1" +Invoke-Expression $PrepScript + +choco --version + +echo "+++ bundle exec rspec chocolatey_package_spec" +bundle exec rspec spec/functional/resource/chocolatey_package_spec.rb +if (-not $?) { throw "Chef chocolatey functional tests failing." } diff --git a/.expeditor/scripts/bk_win_functional.ps1 b/.expeditor/scripts/bk_win_functional.ps1 new file mode 100644 index 0000000000..3cc38f0b37 --- /dev/null +++ b/.expeditor/scripts/bk_win_functional.ps1 @@ -0,0 +1,43 @@ +Write-Output "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize + +# chocolatey functional tests fail so delete the chocolatey binary to avoid triggering them +Remove-Item -Path C:\ProgramData\chocolatey\bin\choco.exe -ErrorAction SilentlyContinue + +$ErrorActionPreference = 'Stop' + +Write-Output "--- Enable Ruby 2.7" +Write-Output "Add Uru to Environment PATH" +$env:PATH = "C:\Program Files (x86)\Uru;" + $env:PATH +[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) + +Write-Output "Register Installed Ruby Version 2.7 With Uru" +Start-Process "C:\Program Files (x86)\Uru\uru_rt.exe" -ArgumentList 'admin add C:\ruby27\bin' -Wait +uru 271 +if (-not $?) { throw "Can't Activate Ruby. Did Uru Registration Succeed?" } + +Write-Output "--- configure winrm" + +winrm quickconfig -q + +Write-Output "--- update bundler" + +ruby -v +if (-not $?) { throw "Can't run Ruby. Is it installed?" } + +$env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] }) +$env:BUNDLER_VERSION=($env:BUNDLER_VERSION -replace '"', "") +Write-Output $env:BUNDLER_VERSION + +gem install bundler -v $env:BUNDLER_VERSION --force --no-document --quiet +if (-not $?) { throw "Unable to update Bundler" } +bundle --version + +Write-Output "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package +if (-not $?) { throw "Unable to install gem dependencies" } + +Write-Output "+++ bundle exec rake spec:functional" +bundle exec rake spec:functional +if (-not $?) { throw "Chef functional specs failing." } diff --git a/.expeditor/scripts/bk_win_integration.ps1 b/.expeditor/scripts/bk_win_integration.ps1 new file mode 100644 index 0000000000..6b0debc790 --- /dev/null +++ b/.expeditor/scripts/bk_win_integration.ps1 @@ -0,0 +1,12 @@ +$CurrentDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent +$PrepScript = Join-Path $CurrentDirectory "bk_win_prep.ps1" +Invoke-Expression $PrepScript + +# Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin") +$Env:Path="C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\ruby27\bin;C:\ci-studio-common\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Go\bin;C:\Users\ContainerAdministrator\go\bin" + +winrm quickconfig -q + +echo "+++ bundle exec rake spec:integration" +bundle exec rake spec:integration +if (-not $?) { throw "Chef integration specs failing." } diff --git a/.expeditor/scripts/bk_win_prep.ps1 b/.expeditor/scripts/bk_win_prep.ps1 new file mode 100644 index 0000000000..1a09378fee --- /dev/null +++ b/.expeditor/scripts/bk_win_prep.ps1 @@ -0,0 +1,20 @@ +echo "--- system details" +$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture' +Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize + +echo "--- update bundler" + +ruby -v +if (-not $?) { throw "Can't run Ruby. Is it installed?" } + +$env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] }) +$env:BUNDLER_VERSION=($env:BUNDLER_VERSION -replace '"', "") +echo $env:BUNDLER_VERSION + +gem install bundler -v $env:BUNDLER_VERSION --force --no-document --quiet +if (-not $?) { throw "Unable to update Bundler" } +bundle --version + +echo "--- bundle install" +bundle install --jobs=3 --retry=3 --without omnibus_package +if (-not $?) { throw "Unable to install gem dependencies" } diff --git a/.expeditor/scripts/bk_win_unit.ps1 b/.expeditor/scripts/bk_win_unit.ps1 new file mode 100644 index 0000000000..f1f28ade05 --- /dev/null +++ b/.expeditor/scripts/bk_win_unit.ps1 @@ -0,0 +1,9 @@ +$CurrentDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent +$PrepScript = Join-Path $CurrentDirectory "bk_win_prep.ps1" +Invoke-Expression $PrepScript + +echo "+++ bundle exec rake" +bundle exec rake spec:unit +if (-not $?) { throw "Chef unit tests failing." } +bundle exec rake component_specs +if (-not $?) { throw "Chef component specs failing." } diff --git a/.expeditor/scripts/ensure-minimum-viable-hab.ps1 b/.expeditor/scripts/ensure-minimum-viable-hab.ps1 new file mode 100644 index 0000000000..10bfeb0fa8 --- /dev/null +++ b/.expeditor/scripts/ensure-minimum-viable-hab.ps1 @@ -0,0 +1,8 @@ +[Version]$hab_version = (hab --version).split(" ")[1].split("/")[0] +if ($hab_version -lt [Version]"0.85.0" ) { + Write-Host "--- :habicat: Installing the version of Habitat required" + install-habitat --version 0.85.0.20190916 + if (-not $?) { throw "Hab version is older than 0.85 and could not update it." } +} else { + Write-Host "--- :habicat: :thumbsup: Minimum required version of Habitat already installed" +} diff --git a/.expeditor/scripts/install-hab.sh b/.expeditor/scripts/install-hab.sh new file mode 100755 index 0000000000..75e910bfab --- /dev/null +++ b/.expeditor/scripts/install-hab.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +set -euo pipefail + +export HAB_LICENSE="accept" +export HAB_NONINTERACTIVE="true" + +hab_target="$1" + +# print error message followed by usage and exit +error () { + local message="$1" + + echo -e "\nERROR: ${message}\n" >&2 + + exit 1 +} + +[[ -n "$hab_target" ]] || error 'no hab target provided' + +echo "--- :habicat: Installing latest version of Habitat" +rm -rf /hab +curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | bash -s -- -t "$hab_target" +hab license accept diff --git a/.expeditor/scripts/verify-plan.ps1 b/.expeditor/scripts/verify-plan.ps1 new file mode 100644 index 0000000000..614d472964 --- /dev/null +++ b/.expeditor/scripts/verify-plan.ps1 @@ -0,0 +1,37 @@ +#!/usr/bin/env powershell + +#Requires -Version 5 + +param( + # The name of the plan that is to be built. + [string]$Plan +) + +$env:HAB_ORIGIN = 'ci' +$Plan = 'chef-infra-client' + +Write-Host "--- :8ball: :windows: Verifying $Plan" + +powershell -File "./.expeditor/scripts/ensure-minimum-viable-hab.ps1" +if (-not $?) { throw "Could not ensure the minimum hab version required is installed." } + +Write-Host "--- :key: Generating fake origin key" +hab origin key generate $env:HAB_ORIGIN + +$project_root = "$(git rev-parse --show-toplevel)" +Set-Location $project_root + +Write-Host "--- :construction: Building $Plan" +$env:DO_CHECK=$true; hab pkg build . +if (-not $?) { throw "unable to build"} + +. results/last_build.ps1 +if (-not $?) { throw "unable to determine details about this build"} + +Write-Host "--- :hammer_and_wrench: Installing $pkg_ident" +hab pkg install results/$pkg_artifact +if (-not $?) { throw "unable to install this build"} + +Write-Host "--- :mag_right: Testing $Plan" +powershell -File "./habitat/tests/test.ps1" -PackageIdentifier $pkg_ident +if (-not $?) { throw "package didn't pass the test suite" } diff --git a/.expeditor/scripts/verify-plan.sh b/.expeditor/scripts/verify-plan.sh new file mode 100755 index 0000000000..b207334267 --- /dev/null +++ b/.expeditor/scripts/verify-plan.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +set -euo pipefail + +export HAB_ORIGIN='ci' +export PLAN='chef-infra-client' +export CHEF_LICENSE="accept-no-persist" +export HAB_LICENSE="accept-no-persist" +export HAB_NONINTERACTIVE="true" + +# print error message followed by usage and exit +error () { + local message="$1" + + echo -e "\nERROR: ${message}\n" >&2 + + exit 1 +} + +echo "--- :8ball: :linux: Verifying $PLAN" +project_root="$(git rev-parse --show-toplevel)" + +echo "--- :key: Generating fake origin key" +hab origin key generate "$HAB_ORIGIN" + +echo "--- :construction: Building $PLAN (solely for verification testing)" +( + cd "$project_root" || error 'cannot change directory to project root' + DO_CHECK=true hab pkg build . || error 'unable to build' +) + +source "${project_root}/results/last_build.env" || error 'unable to determine details about this build' + +echo "--- :hammer_and_wrench: Installing $pkg_ident" +hab pkg install "${project_root}/results/$pkg_artifact" || error 'unable to install this build' + +echo "--- :mag_right: Testing $PLAN" +${project_root}/habitat/tests/test.sh "$pkg_ident" || error 'failures during test of executables' diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 272c3ad8af..3ddd8dc031 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -17,7 +17,7 @@ steps: - label: "Integration Ubuntu 18.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration expeditor: @@ -28,7 +28,7 @@ steps: - label: "Functional Ubuntu 18.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /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 install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof @@ -41,7 +41,7 @@ steps: - label: "Unit Ubuntu 18.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:unit - bundle exec rake component_specs @@ -52,7 +52,7 @@ steps: - label: "Integration Ubuntu 20.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration expeditor: @@ -63,7 +63,7 @@ steps: - label: "Functional Ubuntu 20.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /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 install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof @@ -76,7 +76,7 @@ steps: - label: "Unit Ubuntu 20.04 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:unit - bundle exec rake component_specs @@ -87,7 +87,7 @@ steps: - label: "Integration CentOS 7 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration expeditor: @@ -98,7 +98,7 @@ steps: - label: "Functional CentOS 7 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - yum install -y crontabs e2fsprogs util-linux - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:functional @@ -110,7 +110,7 @@ steps: - label: "Unit CentOS 7 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:unit - bundle exec rake component_specs @@ -121,7 +121,7 @@ steps: - label: "Integration openSUSE 15 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration @@ -133,7 +133,7 @@ steps: - label: "Functional openSUSE 15 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cronie insserv-compat - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:functional @@ -145,7 +145,7 @@ steps: - label: "Unit openSUSE 15 :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - zypper install -y cron insserv-compat - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:unit @@ -157,7 +157,7 @@ steps: - label: "Integration Fedora :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration expeditor: @@ -168,7 +168,7 @@ steps: - label: "Functional Fedora :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - yum install -y crontabs e2fsprogs util-linux - cd /workdir; bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:functional @@ -183,7 +183,7 @@ steps: - label: "Unit Fedora :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake spec:unit - bundle exec rake component_specs @@ -194,7 +194,7 @@ steps: - label: "Functional Windows :ruby: 2.7" commands: - - scripts/bk_tests/bk_win_functional.ps1 + - .expeditor/scripts/bk_win_functional.ps1 expeditor: executor: windows: @@ -204,7 +204,7 @@ steps: - label: "Integration Windows :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_win_integration.ps1 + - /workdir/.expeditor/scripts/bk_win_integration.ps1 expeditor: executor: docker: @@ -217,7 +217,7 @@ steps: - label: "Chocolatey Windows :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_run_choco.ps1 + - /workdir/.expeditor/scripts/bk_run_choco.ps1 expeditor: executor: docker: @@ -227,7 +227,7 @@ steps: - label: "Unit Windows :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_win_unit.ps1 + - /workdir/.expeditor/scripts/bk_win_unit.ps1 expeditor: executor: docker: @@ -244,7 +244,7 @@ steps: - label: "Chefstyle :ruby: 2.6" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package ruby_prof - bundle exec rake style expeditor: @@ -254,7 +254,7 @@ steps: - label: "Integration :ruby: 2.6" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:integration expeditor: @@ -265,7 +265,7 @@ steps: - label: "Functional :ruby: 2.6" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /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 install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package @@ -278,7 +278,7 @@ steps: - label: "Unit :ruby: 2.6" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec rake spec:unit - bundle exec rake component_specs @@ -293,7 +293,7 @@ steps: - label: "chef-sugar gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec tasks/bin/run_external_test chef/chef-sugar master rake expeditor: @@ -303,7 +303,7 @@ steps: - label: "chef-zero gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec tasks/bin/run_external_test chef/chef-zero master rake pedant expeditor: @@ -316,7 +316,7 @@ steps: - label: "cheffish gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec tasks/bin/run_external_test chef/cheffish master rake spec expeditor: @@ -326,7 +326,7 @@ steps: - label: "chefspec gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec tasks/bin/run_external_test chefspec/chefspec master rake expeditor: @@ -336,7 +336,7 @@ steps: - label: "knife-windows gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package - bundle exec tasks/bin/run_external_test chef/knife-windows master rake spec expeditor: @@ -346,7 +346,7 @@ steps: - label: "berkshelf gem :ruby: 2.7" commands: - - /workdir/scripts/bk_tests/bk_container_prep.sh + - /workdir/.expeditor/scripts/bk_container_prep.sh - apt-get update -y - apt-get install -y graphviz - bundle install --jobs=3 --retry=3 --path=vendor/bundle --without omnibus_package @@ -362,7 +362,7 @@ steps: - label: "Kitchen: Amazon Linux 201X" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-amazonlinux artifact_paths: @@ -377,7 +377,7 @@ steps: - label: "Kitchen: Amazon Linux 2" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-amazonlinux-2 artifact_paths: @@ -408,7 +408,7 @@ steps: - label: "Kitchen: Ubuntu 18.04" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-ubuntu-1804 artifact_paths: @@ -423,7 +423,7 @@ steps: - label: "Kitchen: Ubuntu 20.04" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-ubuntu-2004 artifact_paths: @@ -438,7 +438,7 @@ steps: - label: "Kitchen: Ubuntu 20.10" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-ubuntu-2010 artifact_paths: @@ -453,7 +453,7 @@ steps: - label: "Kitchen: Debian 9" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-debian-9 artifact_paths: @@ -468,7 +468,7 @@ steps: - label: "Kitchen: Debian 10" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-debian-10 artifact_paths: @@ -483,7 +483,7 @@ steps: - label: "Kitchen: CentOS 6" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-centos-6 artifact_paths: @@ -498,7 +498,7 @@ steps: - label: "Kitchen: CentOS 7" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-centos-7 artifact_paths: @@ -513,7 +513,7 @@ steps: - label: "Kitchen: CentOS 8" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-centos-8 artifact_paths: @@ -528,7 +528,7 @@ steps: - label: "Kitchen: Oracle Linux 7" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-oraclelinux-7 artifact_paths: @@ -543,7 +543,7 @@ steps: - label: "Kitchen: Oracle Linux 8" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-oraclelinux-8 artifact_paths: @@ -558,7 +558,7 @@ steps: - label: "Kitchen: Fedora latest" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-fedora-latest artifact_paths: @@ -573,7 +573,7 @@ steps: - label: "Kitchen: openSUSE Leap: 15" commands: - - scripts/bk_tests/bk_linux_exec.sh + - .expeditor/scripts/bk_linux_exec.sh - cd kitchen-tests - /opt/omnibus-toolchain/bin/bundle exec kitchen test end-to-end-opensuse-leap-15 artifact_paths: @@ -597,8 +597,8 @@ steps: - label: ":habicat: Linux plan" commands: - - sudo ./scripts/ci/install-hab.sh 'x86_64-linux' - - sudo ./scripts/ci/verify-plan.sh + - sudo ./.expeditor/scripts/install-hab.sh 'x86_64-linux' + - sudo ./.expeditor/scripts/verify-plan.sh timeout_in_minutes: 60 expeditor: executor: @@ -608,8 +608,8 @@ steps: - label: ":habicat: Linux plan (kernel2)" commands: - - sudo ./scripts/ci/install-hab.sh 'x86_64-linux-kernel2' - - sudo ./scripts/ci/verify-plan.sh + - sudo ./.expeditor/scripts/install-hab.sh 'x86_64-linux-kernel2' + - sudo ./.expeditor/scripts/verify-plan.sh timeout_in_minutes: 60 expeditor: executor: @@ -619,7 +619,7 @@ steps: - label: ":habicat: Windows plan" commands: - - ./scripts/ci/verify-plan.ps1 + - ./.expeditor/scripts/verify-plan.ps1 timeout_in_minutes: 60 expeditor: executor: |