summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwrock <matt@mattwrock.com>2020-09-04 19:02:00 -0700
committermwrock <matt@mattwrock.com>2020-09-08 14:46:36 -0700
commit1b4cfdf9c213f5568795a34dbd77acfceb3ebe30 (patch)
tree734eeb798f50b396a93d26b0ad2c5a085b91d1b8
parent41ae92bd5070b450e04f02ae9a1d30987d14bb93 (diff)
downloadchef-autoload.tar.gz
add a comment about the ruby warning level suppressionautoload
Signed-off-by: mwrock <matt@mattwrock.com>
-rw-r--r--azure-pipelines.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 78cfdef9f0..d5e77904f7 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -82,8 +82,12 @@ jobs:
bundle config set without 'omnibus_package docgen ruby_prof'
bundle install --jobs=3 --retry=3 --path=vendor/bundle
gem install berkshelf --no-doc
+ # berks emits a ruby warning when it loads net/http due to a previously
+ # defined constant. Even though it is just a warning, powershell immediately
+ # exits 1. I'm not sure why but this just suppresses the warnings.
$env:RUBYOPT="-W0"
berks vendor cookbooks
+ # restore the default warning level
$env:RUBYOPT="-W1"
chef-client -z -o end_to_end --chef-license accept-no-persist
displayName: 'Run end_to_end::default recipe'