Skip to content

Commit 194a7b6

Browse files
committed
Insert more whitespace and formatting into build log for clarity
1 parent 47f3a4b commit 194a7b6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

exe/arduino_ci.rb

+23
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,32 @@ def inform_multiline(message, &block)
154154
perform_action(message, true, nil, nil, false, false, &block)
155155
end
156156

157+
def rule(char)
158+
puts char[0] * WIDTH
159+
end
160+
157161
def warn(message)
158162
inform("WARNING") { message }
159163
end
160164

161165
def phase(name)
166+
puts
167+
rule("=")
162168
inform("Beginning the next phase of testing") { name }
163169
end
164170

171+
def banner
172+
art = [
173+
" . __ ___",
174+
" _, ,_ _| , . * ._ _ / ` | ",
175+
"(_| [ `(_] (_| | [ ) (_) \\__. _|_ v#{ArduinoCI::VERSION}",
176+
]
177+
178+
pad = " " * ((WIDTH - art[2].length) / 2)
179+
art.each { |l| puts "#{pad}#{l}" }
180+
puts
181+
end
182+
165183
# Assure that a platform exists and return its definition
166184
def assured_platform(purpose, name, config)
167185
platform_definition = config.platform_definition(name)
@@ -430,6 +448,7 @@ def perform_unit_tests(cpp_library, file_config)
430448
install_arduino_library_dependencies(config.aux_libraries_for_unittest, "<unittest/libraries>")
431449

432450
platforms.each do |p|
451+
puts
433452
config.allowable_unittest_files(cpp_library.test_files).each do |unittest_path|
434453
unittest_name = unittest_path.basename.to_s
435454
compilers.each do |gcc_binary|
@@ -470,6 +489,7 @@ def perform_example_compilation_tests(cpp_library, config)
470489

471490
library_examples.each do |example_path|
472491
example_name = File.basename(example_path)
492+
puts
473493
inform("Discovered example sketch") { example_name }
474494

475495
ovr_config = config.from_example(example_path)
@@ -503,6 +523,9 @@ def perform_example_compilation_tests(cpp_library, config)
503523
end
504524
end
505525

526+
banner
527+
inform("Host OS") { ArduinoCI::Host.os }
528+
506529
# initialize command and config
507530
config = ArduinoCI::CIConfig.default.from_project_library
508531
@backend = ArduinoCI::ArduinoInstallation.autolocate!

0 commit comments

Comments
 (0)