Skip to content

Commit 477276f

Browse files
committed
Add indication of build phases
1 parent 8fd5c2a commit 477276f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99
### Added
10+
- Better indications of the build phases in the test runner `arduino_ci.rb`
1011

1112
### Changed
1213

exe/arduino_ci.rb

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def warn(message)
158158
inform("WARNING") { message }
159159
end
160160

161+
def phase(name)
162+
inform("Beginning the next phase of testing") { name }
163+
end
164+
161165
# Assure that a platform exists and return its definition
162166
def assured_platform(purpose, name, config)
163167
platform_definition = config.platform_definition(name)
@@ -368,6 +372,7 @@ def choose_platform_set(config, reason, desired_platforms, library_properties)
368372

369373
# tests of sane library.properties values
370374
def perform_property_tests(cpp_library)
375+
phase("library.properties validation")
371376
return inform("Skipping library.properties tests") { "as requested via command line" } if @cli_options[:skip_library_properties]
372377
return inform("Skipping library.properties tests") { "as requested via environment" } unless ENV[VAR_SKIP_LIBPROPS].nil?
373378
return inform("Skipping library.properties tests") { "file not found" } unless cpp_library.library_properties?
@@ -394,6 +399,7 @@ def perform_property_tests(cpp_library)
394399

395400
# Unit test procedure
396401
def perform_unit_tests(cpp_library, file_config)
402+
phase("Unit testing")
397403
if @cli_options[:skip_unittests]
398404
inform("Skipping unit tests") { "as requested via command line" }
399405
return
@@ -449,6 +455,7 @@ def perform_unit_tests(cpp_library, file_config)
449455
end
450456

451457
def perform_example_compilation_tests(cpp_library, config)
458+
phase("Compilation of example sketches")
452459
if @cli_options[:skip_compilation]
453460
inform("Skipping compilation of examples") { "as requested via command line" }
454461
return

0 commit comments

Comments
 (0)