Merge pull request #10482 from MikeMcQuaid/tests-bootsnap

workflows/tests: set HOMEBREW_BOOTSNAP.
This commit is contained in:
Mike McQuaid 2021-02-02 14:25:39 +00:00 committed by GitHub
commit d37c8c99f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -169,6 +169,8 @@ jobs:
test-default-formula-linux: test-default-formula-linux:
name: test default formula (Linux) name: test default formula (Linux)
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
HOMEBREW_BOOTSNAP: 1
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew
id: set-up-homebrew id: set-up-homebrew
@ -183,6 +185,8 @@ jobs:
needs: syntax needs: syntax
if: startsWith(github.repository, 'Homebrew/') if: startsWith(github.repository, 'Homebrew/')
runs-on: macos-latest runs-on: macos-latest
env:
HOMEBREW_BOOTSNAP: 1
steps: steps:
- name: Set up Homebrew - name: Set up Homebrew
id: set-up-homebrew id: set-up-homebrew

View File

@ -14,9 +14,8 @@ if !ENV["HOMEBREW_NO_BOOTSNAP"] &&
rescue LoadError rescue LoadError
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"] raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
Dir.chdir(HOMEBREW_LIBRARY_PATH) do require "utils/gems"
system "bundle", "install", "--standalone" Homebrew.install_bundler_gems!
end
ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1" ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
exec ENV["HOMEBREW_BREW_FILE"], *ARGV exec ENV["HOMEBREW_BREW_FILE"], *ARGV