Skip to content

Commit

Permalink
Install gcc on TravisCI for Linuxbrew (Homebrew#12)
Browse files Browse the repository at this point in the history
Removing the dependencies of a formula before installing its bottle
can remove dependencies of gcc, particularly zlib, which can break the
subsequent brew test. Installing gcc before testing the formula
protects it and its dependencies from automatic removal.
  • Loading branch information
sjackman authored Feb 16, 2017
1 parent 783d996 commit e9ba0af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/brew-test-bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,11 @@ def formula(formula_name)
retry
end

if OS.linux? && ENV["TRAVIS"]
installed_gcc = true
run_as_not_developer { test "brew", "install", "gcc" }
end

begin
deps.each do |dep|
CompilerSelector.select_for(dep.to_formula)
Expand Down

0 comments on commit e9ba0af

Please sign in to comment.