Skip to content

Commit 047ee72

Browse files
committed
Allow configuration overrides in examples directory
1 parent ae8bf89 commit 047ee72

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
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
1313
- CI runner script now expliclty informs about config overrides
14+
- A project `examples/` directory can now provide its own configuration override file, which provides no new flexibility but simply mirrors the behavior for `tests/`.
1415

1516
### Changed
1617
- `CIConfig` now uses `Pathname` instead of strings
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
compile:
2+
platforms:
3+
- uno
4+
- due
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
compile:
2+
platforms:
3+
- uno
4+
- due

exe/arduino_ci.rb

+3
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ def perform_example_compilation_tests(cpp_library, config)
495495
return
496496
end
497497

498+
inform_override("examples") { config.override_file_from_example(cpp_library.examples_dir) }
499+
ex_config = config.from_example(cpp_library.examples_dir)
500+
498501
library_examples.each do |example_path|
499502
example_name = File.basename(example_path)
500503
puts

0 commit comments

Comments
 (0)