@@ -154,14 +154,32 @@ def inform_multiline(message, &block)
154
154
perform_action ( message , true , nil , nil , false , false , &block )
155
155
end
156
156
157
+ def rule ( char )
158
+ puts char [ 0 ] * WIDTH
159
+ end
160
+
157
161
def warn ( message )
158
162
inform ( "WARNING" ) { message }
159
163
end
160
164
161
165
def phase ( name )
166
+ puts
167
+ rule ( "=" )
162
168
inform ( "Beginning the next phase of testing" ) { name }
163
169
end
164
170
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
+
165
183
# Assure that a platform exists and return its definition
166
184
def assured_platform ( purpose , name , config )
167
185
platform_definition = config . platform_definition ( name )
@@ -430,6 +448,7 @@ def perform_unit_tests(cpp_library, file_config)
430
448
install_arduino_library_dependencies ( config . aux_libraries_for_unittest , "<unittest/libraries>" )
431
449
432
450
platforms . each do |p |
451
+ puts
433
452
config . allowable_unittest_files ( cpp_library . test_files ) . each do |unittest_path |
434
453
unittest_name = unittest_path . basename . to_s
435
454
compilers . each do |gcc_binary |
@@ -470,6 +489,7 @@ def perform_example_compilation_tests(cpp_library, config)
470
489
471
490
library_examples . each do |example_path |
472
491
example_name = File . basename ( example_path )
492
+ puts
473
493
inform ( "Discovered example sketch" ) { example_name }
474
494
475
495
ovr_config = config . from_example ( example_path )
@@ -503,6 +523,9 @@ def perform_example_compilation_tests(cpp_library, config)
503
523
end
504
524
end
505
525
526
+ banner
527
+ inform ( "Host OS" ) { ArduinoCI ::Host . os }
528
+
506
529
# initialize command and config
507
530
config = ArduinoCI ::CIConfig . default . from_project_library
508
531
@backend = ArduinoCI ::ArduinoInstallation . autolocate!
0 commit comments