Merge pull request #5650 from inspec/bundler_deprecated_warning

Replace deprecated --without flag with bundle config
This commit is contained in:
Tom Duffield 2021-09-02 12:32:44 -05:00 committed by GitHub
commit f9c474419c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 6 deletions

View file

@ -5,7 +5,8 @@ ruby -v
bundle --version
echo "--- bundle install"
bundle install --jobs=7 --retry=3 --without tools maintenance deploy
bundle config set --local without tools maintenance deploy
bundle install --jobs=7 --retry=3
echo "+++ bundle exec rake test:parallel"
bundle exec rake test:parallel K=4

View file

@ -25,7 +25,8 @@ pull_bundle
echo "--- bundle"
bundle config --local path vendor/bundle
bundle install --jobs=7 --retry=3 --without tools maintenance deploy
bundle config set --local without tools maintenance deploy
bundle install --jobs=7 --retry=3
echo "--- push bundle cache"
push_bundle

View file

@ -7,7 +7,8 @@ set -ue
echo "--- bundle install"
cd www
bundle install --jobs=7 --retry=3 --without tools maintenance deploy
bundle config set --local without tools maintenance deploy
bundle install --jobs=7 --retry=3
echo "+++ bundle exec rake"
bundle exec rake www V=1 PUSH=1

View file

@ -9,7 +9,7 @@ gem "ffi", ">= 1.9.14", "!= 1.13.0"
# This development group is installed by default when you run `bundle install`,
# but if you are using Omnibus in a CI-based infrastructure, you do not need
# the Test Kitchen-based build lab. You can skip these unnecessary dependencies
# by running `bundle install --without development` to speed up build times.
# by running `bundle config set --local without development` to speed up build times.
group :development do
# Use Berkshelf for resolving cookbook dependencies
gem "berkshelf", ">= 7.0"

View file

@ -121,7 +121,8 @@ $ bundle exec kitchen converge i386```
# Now inside the kitchen vm, open a cmd/ps shell
$ C:\vagrant\load-omnibus-toolchain.ps1 # (or .bar if you're on cmd)
$ cd C:\vagrant\code\inspec\omnibus
$ bundle install --without development
$ bundle config set --local without development
$ bundle install
$ bundle exec omnibus build inspec -l debug
# If you get a 'can't sign this msi because I don't have a key to do so' error

View file

@ -35,7 +35,8 @@ build do
# We bundle install to ensure the versions of gems we are going to
# appbundle-lock to are definitely installed
bundle "install --without test integration tools maintenance", env: env
bundle "config set --local without test integration tools maintenance", env: env
bundle "install", env: env
gem "build #{name}-core.gemspec", env: env
gem "install #{name}-core*.gem --no-document", env: env