Skip to content

Commit 89ce4d5

Browse files
committed
Explicitly report config overrides and their paths
1 parent 0001550 commit 89ce4d5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- C++ definitions of `ARDUINO_CI_COMPILATION_MOCKS` and `ARDUINO_CI_GODMODE` to aid in compilation macros
1111
- `CIConfig.available_override_config_path()` to search for available override files in standard locations
1212
- `CIConfig.override_file_from_project_library` and `CIConfig.override_file_from_example` to expose config locations
13+
- CI runner script now expliclty informs about config overrides
1314

1415
### Changed
1516
- `CIConfig` now uses `Pathname` instead of strings

Diff for: exe/arduino_ci.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,9 @@ def perform_example_compilation_tests(cpp_library, config)
493493
puts
494494
inform("Discovered example sketch") { example_name }
495495

496+
inform("Using configuration override from example") { config.override_file_from_example(example_path) }
496497
ovr_config = config.from_example(example_path)
498+
497499
platforms = choose_platform_set(ovr_config, "library example", ovr_config.platforms_to_build, cpp_library.library_properties)
498500

499501
# having no platforms defined is probably an error
@@ -541,7 +543,10 @@ def perform_example_compilation_tests(cpp_library, config)
541543
inform("Working directory") { Dir.pwd }
542544

543545
# initialize command and config
544-
config = ArduinoCI::CIConfig.default.from_project_library
546+
default_config = ArduinoCI::CIConfig.default
547+
inform("Using configuration override from project") { default_config.override_file_from_project_library }
548+
config = default_config.from_project_library
549+
545550
@backend = ArduinoCI::ArduinoInstallation.autolocate!
546551
inform("Located arduino-cli binary") { @backend.binary_path.to_s }
547552
if @backend.lib_dir.exist?

0 commit comments

Comments
 (0)