diff options
author | Tim Smith <tsmith@chef.io> | 2020-03-09 12:39:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 12:39:54 -0700 |
commit | 9a8c4ddc1f18cb1091d3ea6c417c9e621d0ab75f (patch) | |
tree | f9d60f002c341a53ce4c8c698c6e85e6c9f5325f | |
parent | 96552db91762b82dc1a59cf9f5da380662784da6 (diff) | |
parent | ac8287cf5193db9ed842d3a8d76a3b3909442d38 (diff) | |
download | chef-9a8c4ddc1f18cb1091d3ea6c417c9e621d0ab75f.tar.gz |
Merge pull request #9466 from chef/faster_specs
Set env vars in the container setup script
-rw-r--r-- | .expeditor/verify.pipeline.yml | 49 | ||||
-rwxr-xr-x | scripts/bk_tests/bk_container_prep.sh | 4 |
2 files changed, 4 insertions, 49 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 9fe1f1898a..52bf06f8e5 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -26,10 +26,6 @@ steps: docker: image: rubydistros/ubuntu-18.04 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - BUNDLE_GEMFILE=/workdir/Gemfile - label: "Functional Specs Ubuntu :ruby: 2.6" commands: @@ -43,9 +39,6 @@ steps: docker: image: rubydistros/ubuntu-18.04 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Unit Specs Ubuntu :ruby: 2.6" commands: @@ -57,9 +50,6 @@ steps: executor: docker: image: rubydistros/ubuntu-18.04 - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Integration Specs CentOS :ruby: 2.6" commands: @@ -71,10 +61,6 @@ steps: docker: image: rubydistros/centos-7 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - BUNDLE_GEMFILE=/workdir/Gemfile - label: "Functional Specs CentOS :ruby: 2.6" commands: @@ -87,9 +73,6 @@ steps: docker: image: rubydistros/centos-7 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Unit Specs CentOS :ruby: 2.6" commands: @@ -101,9 +84,6 @@ steps: executor: docker: image: rubydistros/centos-7 - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Integration Specs openSUSE :ruby: 2.6" commands: @@ -115,10 +95,6 @@ steps: docker: image: rubydistros/opensuse-15 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - BUNDLE_GEMFILE=/workdir/Gemfile - label: "Functional Specs openSUSE :ruby: 2.6" commands: @@ -131,9 +107,6 @@ steps: docker: image: rubydistros/opensuse-15 privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Unit Specs openSUSE :ruby: 2.6" commands: @@ -145,9 +118,6 @@ steps: executor: docker: image: rubydistros/opensuse-15 - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Integration Specs Fedora :ruby: 2.6" commands: @@ -159,10 +129,6 @@ steps: docker: image: rubydistros/fedora-latest privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - BUNDLE_GEMFILE=/workdir/Gemfile - label: "Functional Specs Fedora :ruby: 2.6" commands: @@ -189,9 +155,6 @@ steps: executor: docker: image: rubydistros/fedora-latest - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - label: "Integration Specs Windows :ruby: 2.6" commands: @@ -259,10 +222,6 @@ steps: docker: image: ruby:2.7-buster privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - INTEGRATION_SPECS_27=1 - label: "Functional Specs :ruby: 2.7" commands: @@ -276,10 +235,6 @@ steps: docker: image: ruby:2.7-buster privileged: true - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - FUNCTIONAL_SPECS_27=1 - label: "Unit Specs :ruby: 2.7" commands: @@ -291,10 +246,6 @@ steps: executor: docker: image: ruby:2.7-buster - environment: - - FORCE_FFI_YAJL=ext - - CHEF_LICENSE=accept-no-persist - - UNIT_SPECS_27=1 ######################################################################### # EXTERNAL GEM TESTING diff --git a/scripts/bk_tests/bk_container_prep.sh b/scripts/bk_tests/bk_container_prep.sh index bb82b6b140..bc98c237ad 100755 --- a/scripts/bk_tests/bk_container_prep.sh +++ b/scripts/bk_tests/bk_container_prep.sh @@ -1,5 +1,9 @@ # This script gets a container ready to run our various tests in BuildKite +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 |