Skip to content

Commit

Permalink
Merge pull request #21648 from jrafanie/force_native_extensions_compi…
Browse files Browse the repository at this point in the history
…le_from_source

Force native extensions to compile from source for now

(cherry picked from commit 328c37c)
  • Loading branch information
Fryguy committed Feb 2, 2022
1 parent 48d43b2 commit 8b29387
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/manageiq/environment.rb
Expand Up @@ -63,6 +63,13 @@ def self.install_bundler(root = APP_ROOT)
system!("echo 'gem: --no-ri --no-rdoc --no-document' > ~/.gemrc") if ENV['CI']
system!("gem install bundler -v '#{bundler_version}' --conservative")
system!("bundle config path #{root.join('vendor/bundle').expand_path}", :chdir => root) if ENV["CI"]

# For nokogiri 1.13.0+, native gem support was added, allowing pre-compiled binaries to be used.
# This provides faster and more reliable installation but assumes you have total control of the installation environment.
# On travis, or other CI's, we may not be able to easily install the various dev dependencies it expects. We'll force
# travis to compile these extensions from source until we can use these native gems.
# See https://nokogiri.org/CHANGELOG.html#1130-2022-01-06
system!("bundle config set force_ruby_platform true") if ENV["TRAVIS"]
end

def self.bundle_update(root = APP_ROOT)
Expand Down

0 comments on commit 8b29387

Please sign in to comment.