I am building a Travis CI job to test my Arduino Library and it needs to install external board definitions.
Is there a way that I can set the boardsmanager.additional.urls from the command prompt like it would have been done in the Preferences window?
Or should I create preferences.txt file? (If so where does that live in a Linux environment)
asked Sep 2, 2015 at 22:58
-
The location of preferences.txt is shown near the bottom of the preferences page. It takes two or three clicks to open it in gedit.James Waldby - jwpat7– James Waldby - jwpat72015年09月03日 03:24:54 +00:00Commented Sep 3, 2015 at 3:24
1 Answer 1
Found the solution:
arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json"
answered Sep 3, 2015 at 0:49
-
1Note that since Arduino IDE 1.6.4 preferences set via
--pref
are only saved if you also use the--save-prefs
option. See: github.com/arduino/Arduino/blob/master/build/shared/…per1234– per12342017年06月19日 07:34:42 +00:00Commented Jun 19, 2017 at 7:34