Skip to content

Commit 3b84de9

Browse files
committed
Fix board family installation by providing additional_urls
1 parent 6d099f6 commit 3b84de9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

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

2020
### Fixed
2121
- Improper reference to `Host` in `arduino_ci.rb` test runner is now properly qualified
22+
- Failure to set board manager URLs (for 3rd party board providers) has been fixed
2223

2324
### Security
2425

REFERENCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For build behavior that you'd like to persist across commits (e.g. defining the
6464

6565
Arduino boards are typically named in the form `manufacturer:family:model`. These definitions are not arbitrary -- they are defined in an Arduino _package_. For all but the built-in packages, you will need a package URL. Here is Adafruit's: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
6666

67-
Here is how you would declare a package that includes the `potato:salad` family of boards in your `.arduino-ci.yml`:
67+
Here is how you would declare a package that includes the `potato:salad` set of platforms (aka "board family") in your `.arduino-ci.yml`:
6868

6969
```yaml
7070
packages:

lib/arduino_ci/arduino_backend.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ def board_installed?(boardname)
121121
# @param name [String] the board name
122122
# @return [bool] whether the command succeeded
123123
def install_boards(boardfamily)
124-
result = run_and_capture("core", "install", boardfamily)
124+
result = if @additional_urls.empty?
125+
run_and_capture("core", "install", boardfamily)
126+
else
127+
run_and_capture("core", "install", boardfamily, "--additional-urls", @additional_urls.join(","))
128+
end
125129
result[:success]
126130
end
127131

0 commit comments

Comments
 (0)