summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-06 21:30:49 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-16 15:50:05 -0700
commit911047a31140f46a972804b1ba177eaa40773b7c (patch)
tree187c0d83c40900f460988a6046675b039ff706bc
parent8fcfcd73f934da137a225138635a88b7e7875f34 (diff)
downloadchef-911047a31140f46a972804b1ba177eaa40773b7c.tar.gz
Set env vars in the container setup script
We're setting the same env vars in each job. Seems entirely pointless. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.expeditor/verify.pipeline.yml55
-rwxr-xr-xscripts/bk_tests/bk_container_prep.sh4
2 files changed, 7 insertions, 52 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 227685dbc7..df5dbdbf62 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:
@@ -257,12 +220,8 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.5-stretch
+ image: ruby:2.5-buster
privileged: true
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
- - INTEGRATION_SPECS_25=1
- label: "Functional Specs :ruby: 2.5"
commands:
@@ -274,12 +233,8 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.5-stretch
+ image: ruby:2.5-buster
privileged: true
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
- - FUNCTIONAL_SPECS_25=1
- label: "Unit Specs :ruby: 2.5"
commands:
@@ -290,11 +245,7 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.5-stretch
- environment:
- - FORCE_FFI_YAJL=ext
- - CHEF_LICENSE=accept-no-persist
- - UNIT_SPECS_25=1
+ image: ruby:2.5-buster
#########################################################################
# 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