brew-test-bot: run Homebrew tests every time.
This commit is contained in:
parent
2e2d922190
commit
731d4016f7
@ -99,7 +99,7 @@ class Step
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Test
|
class Test
|
||||||
attr_reader :log_root, :category, :name, :core_changed, :formulae, :steps
|
attr_reader :log_root, :category, :name, :formulae, :steps
|
||||||
|
|
||||||
def initialize argument
|
def initialize argument
|
||||||
@hash = nil
|
@hash = nil
|
||||||
@ -121,7 +121,6 @@ class Test
|
|||||||
|
|
||||||
@category = __method__
|
@category = __method__
|
||||||
@steps = []
|
@steps = []
|
||||||
@core_changed = false
|
|
||||||
@brewbot_root = Pathname.pwd + "brewbot"
|
@brewbot_root = Pathname.pwd + "brewbot"
|
||||||
FileUtils.mkdir_p @brewbot_root
|
FileUtils.mkdir_p @brewbot_root
|
||||||
end
|
end
|
||||||
@ -207,10 +206,6 @@ class Test
|
|||||||
@formulae << File.basename(filename, '.rb')
|
@formulae << File.basename(filename, '.rb')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if filename.include? '/Homebrew/' or filename.include? '/ENV/' \
|
|
||||||
or filename.include? 'bin/brew'
|
|
||||||
@core_changed = true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -329,10 +324,10 @@ class Test
|
|||||||
cleanup_before
|
cleanup_before
|
||||||
download
|
download
|
||||||
setup unless ARGV.include? "--skip-setup"
|
setup unless ARGV.include? "--skip-setup"
|
||||||
|
homebrew
|
||||||
formulae.each do |f|
|
formulae.each do |f|
|
||||||
formula(f)
|
formula(f)
|
||||||
end
|
end
|
||||||
homebrew if core_changed
|
|
||||||
cleanup_after
|
cleanup_after
|
||||||
check_results
|
check_results
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user