File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed
app/models/shipit/deploy_spec Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- shipit-engine (0.43.1 )
4+ shipit-engine (0.43.2 )
55 active_model_serializers (~> 0.9.3 )
66 ansi_stream (~> 0.0.6 )
77 autoprefixer-rails (~> 6.4.1 )
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ def discover_machine_env
2727
2828 def bundle_install
2929 install_command = %(bundle install --jobs 4 --retry 2)
30- install_command += " --without=#{ bundler_without . join ( ':' ) } " unless bundler_without . empty?
3130 [
3231 remove_ruby_version_from_gemfile ,
3332 ( bundle_config_frozen if frozen_mode? ) ,
3433 bundle_config_path ,
34+ ( bundle_without_groups unless bundler_without . empty? ) ,
3535 install_command
3636 ] . compact
3737 end
@@ -54,6 +54,10 @@ def bundle_config_frozen
5454 'bundle config set --local frozen true'
5555 end
5656
57+ def bundle_without_groups
58+ "bundle config set without '#{ bundler_without . join ( ':' ) } '"
59+ end
60+
5761 def frozen_mode?
5862 return false unless gemfile_lock_exists?
5963
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module Shipit
4- VERSION = '0.43.1 '
4+ VERSION = '0.43.2 '
55end
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ module Shipit
5353 ]
5454 },
5555 "override": [
56- "bundle config set path /tmp/bundler && (bundle check || bundle install --frozen --retry=2 -- without= default:production:development:test:staging:benchmark:debug)"
56+ "bundle config set path /tmp/bundler && (bundle check || bundle config set without ' default:production:development:test:staging:benchmark:debug' || bundle install --frozen --retry=2 )"
5757 ]
5858 },
5959 "fetch": [
Original file line number Diff line number Diff line change @@ -69,12 +69,13 @@ class DeploySpecTest < ActiveSupport::TestCase
6969 bundle install
7070 --jobs 4
7171 --retry 2
72- --without=default:production:development:test:staging:benchmark:debug
7372 ) . gsub ( /\s +/ , ' ' ) . strip
7473 config_command = "bundle config set --local path #{ @spec . bundle_path } "
74+ without_command = "bundle config set without 'default:production:development:test:staging:benchmark:debug'"
7575
7676 assert_equal command , @spec . bundle_install . last
7777 assert @spec . bundle_install . include? ( config_command )
78+ assert @spec . bundle_install . include? ( without_command )
7879 end
7980
8081 test '#bundle_install use `dependencies.bundler.without` if present to build the --without argument' do
@@ -84,9 +85,10 @@ class DeploySpecTest < ActiveSupport::TestCase
8485 bundle install
8586 --jobs 4
8687 --retry 2
87- --without=some:custom:groups
8888 ) . gsub ( /\s +/ , ' ' ) . strip
8989 assert_equal command , @spec . bundle_install . last
90+ without_command = "bundle config set without 'some:custom:groups'"
91+ assert @spec . bundle_install . include? ( without_command )
9092 end
9193
9294 test '#bundle_install configures frozen mode if Gemfile.lock is present' do
You can’t perform that action at this time.
0 commit comments