Skip to content

Commit fded01d

Browse files
authored
Revert "Explicitly check for Arduino platforms in build script"
This reverts commit 08930e5.
1 parent 79bc683 commit fded01d

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88
### Added
9-
- Explicit checks that the requested test platforms are defined in YML
109

1110
### Changed
1211
- Refactored documentation

exe/arduino_ci_remote.rb

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,7 @@ def attempt_multiline(message, &block)
5555

5656
# Make a nice status for something that kills the script immediately on failure
5757
def assure(message, &block)
58-
perform_action(message, false, "This may indicate a problem with ArduinoCI, or your configuration", true, &block)
59-
end
60-
61-
# Assure that a platform exists and return its definition
62-
def assured_platform(purpose, name, config)
63-
platform_definition = config.platform_definition(name)
64-
assure("Requested #{purpose} platform '#{name}' is defined in 'platforms' YML") do
65-
!platform_definition.nil?
66-
end
67-
platform_definition
58+
perform_action(message, false, "This may indicate a problem with ArduinoCI!", true, &block)
6859
end
6960

7061
# initialize command and config
@@ -94,11 +85,10 @@ def assured_platform(purpose, name, config)
9485
# while we're doing that, get the aux libraries as well
9586
all_platforms = {}
9687
aux_libraries = Set.new(config.aux_libraries_for_unittest + config.aux_libraries_for_build)
97-
# while collecting the platforms, ensure they're defined
98-
config.platforms_to_unittest.each { |p| all_platforms[p] = assured_platform("unittest", p, config) }
88+
config.platforms_to_unittest.each { |p| all_platforms[p] = config.platform_definition(p) }
9989
library_examples.each do |path|
10090
ovr_config = config.from_example(path)
101-
ovr_config.platforms_to_build.each { |p| all_platforms[p] = assured_platform("library example", p, config) }
91+
ovr_config.platforms_to_build.each { |p| all_platforms[p] = config.platform_definition(p) }
10292
aux_libraries.merge(ovr_config.aux_libraries_for_build)
10393
end
10494

0 commit comments

Comments
 (0)