Skip to content

Commit

Permalink
Standardize which gems get installed during packaging (#3906)
Browse files Browse the repository at this point in the history
Fixes #3821
  • Loading branch information
treydock authored Oct 28, 2024
1 parent 3a521a1 commit a6e1e9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tasks/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
task :gems do
bundle_args = ['--jobs 4', '--retry 2']
bundle_args << '--path vendor/bundle' if VENDOR_BUNDLE
bundle_env = "BUNDLE_WITHOUT='doc'" if PASSENGER_APP_ENV == 'production'
bundle_env = "BUNDLE_WITHOUT='doc test package development'" if PASSENGER_APP_ENV == 'production'

apps.each do |a|
next unless a.ruby_app?
Expand Down
2 changes: 1 addition & 1 deletion packaging/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ifeq ($(ARCH),ppc64le)
bundle config set --global force_ruby_platform true
bundle config --global build.nokogiri --use-system-libraries
endif
BUNDLE_WITHOUT='test package' bundle install
BUNDLE_WITHOUT='doc test package development' bundle install
rake --trace -mj$(NCPUS) build
rm -rf $(GEM_HOME)/cache
rm -rf apps/*/node_modules/.cache
Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/ondemand.spec
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ bundle config set --global force_ruby_platform true
%ifarch ppc64le
bundle config set --global force_ruby_platform true
%endif
BUNDLE_WITHOUT='test package' bundle install
BUNDLE_WITHOUT='doc test package development' bundle install
rake --trace -mj%{ncpus} build
rm -rf ${GEM_HOME}/cache
rm -rf apps/*/node_modules/.cache
Expand Down

0 comments on commit a6e1e9a

Please sign in to comment.