diff --git a/lib/tasks/build.rb b/lib/tasks/build.rb index cafeffdc36..eb7f02d86b 100644 --- a/lib/tasks/build.rb +++ b/lib/tasks/build.rb @@ -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? diff --git a/packaging/deb/rules b/packaging/deb/rules index c321b65aa5..dcd33b7efa 100755 --- a/packaging/deb/rules +++ b/packaging/deb/rules @@ -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 diff --git a/packaging/rpm/ondemand.spec b/packaging/rpm/ondemand.spec index d7ee07515b..03baff84ac 100644 --- a/packaging/rpm/ondemand.spec +++ b/packaging/rpm/ondemand.spec @@ -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