8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/wwtd/cli.rb', line 8
def run(argv=[])
matrix, ignored = ::WWTD.read_travis_yml
puts "Ignoring: #{ignored.sort.join(", ")}" if ignored.any?
results = protect_against_nested_runs do
::WWTD.run(matrix, parse_options(argv)) do |state, config|
puts info_line(state, config, matrix)
end
end
if results.size > 1
puts "\nResults:"
puts results.map { |state, config| info_line(state, config, matrix) }
end
results.all? { |state, config| state == :success } ? 0 : 1
end
|