You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script needs to be informed of the IDE versions that are available even if the user already has them installed or has used an alternate installation method. This change allows install_ide to be used for that purpose.
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Turn on/off checking for errors with libraries that don't affect sketch verifica
52
52
53
53
##### `install_ide [IDEversionList]`
54
54
Install a list of version(s) of the Arduino IDE.
55
-
- Parameter(optional): **IDEversionList** - A list of the versions of the Arduino IDE you want installed, in order from oldest to newest. e.g. `'("1.6.5-r5" "1.6.9" "1.8.2")'`. If no arguments are supplied all IDE versions will be installed. I have defined all versions of the Arduino IDE that have a command line interface in the script for the sake of being complete but I really don't see much reason for testing with the 1.5.x versions of the Arduino IDE. Please only install the IDE versions you actually need for your test to avoid wasting Arduino's bandwidth. This will also result in the builds running faster.
55
+
- Parameter(optional): **IDEversionList** - A list of the versions of the Arduino IDE you want installed, in order from oldest to newest. e.g. `'("1.6.5-r5" "1.6.9" "1.8.2")'`. If no arguments are supplied all IDE versions will be installed. I have defined all versions of the Arduino IDE that have a command line interface in the script for the sake of being complete but I really don't see much reason for testing with the 1.5.x versions of the Arduino IDE. Please only install the IDE versions you actually need for your test to avoid wasting Arduino's bandwidth. This will also result in the builds running faster. Installation of the IDE will be skipped if it's found to already be installed in the folder specified via the `set_application_folder` function so `install_ide` can also be used simply to inform the script which IDE versions are available.
Copy file name to clipboardExpand all lines: arduino-ci-script.sh
+28-22
Original file line number
Diff line number
Diff line change
@@ -246,30 +246,36 @@ function install_ide()
246
246
eval"$INSTALLED_IDE_VERSION_LIST_ARRAY"
247
247
local IDEversion
248
248
forIDEversionin"${IDEversionListArray[@]}";do
249
-
if [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL"-eq 0 ]];then
250
-
# If the download/installation process is going slowly when installing a lot of IDE versions this function may cause the build to fail due to exceeding Travis CI's 10 minutes without log output timeout so it's necessary to periodically print something.
251
-
echo"Installing: $IDEversion"
252
-
fi
253
-
# Determine download file extension
254
-
local tgzExtensionVersionsRegex="1.5.[0-9]"
255
-
if [[ "$IDEversion"=~$tgzExtensionVersionsRegex ]];then
256
-
# The download file extension prior to 1.6.0 is .tgz
257
-
local downloadFileExtension="tgz"
258
-
else
259
-
local downloadFileExtension="tar.xz"
260
-
fi
249
+
local IDEinstallFolder="$ARDUINO_CI_SCRIPT_APPLICATION_FOLDER/arduino-${IDEversion}"
261
250
262
-
if [[ "$IDEversion"=="hourly" ]];then
263
-
# Deal with the inaccurate name given to the hourly build download
264
-
local downloadVersion="nightly"
265
-
else
266
-
local downloadVersion="$IDEversion"
267
-
fi
251
+
# Don't unnecessarily install the IDE
252
+
if! [[ -d"$IDEinstallFolder" ]];then
253
+
if [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL"-eq 0 ]];then
254
+
# If the download/installation process is going slowly when installing a lot of IDE versions this function may cause the build to fail due to exceeding Travis CI's 10 minutes without log output timeout so it's necessary to periodically print something.
0 commit comments