Skip to content

Commit 73a5220

Browse files
committed
Reduce the scope of IDE version ranges in .travis.yml
It's not possible to test the full version range in a single job as this causes the job to exceed the maximum duration allowed by Travis CI. It's highly unlikely that anyone will be using the old IDE versions anyway.
1 parent 9c51e94 commit 73a5220

File tree

1 file changed

+54
-32
lines changed

1 file changed

+54
-32
lines changed

.travis.yml

Lines changed: 54 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,29 @@ env:
1111
- SKETCHBOOK_FOLDER="${HOME}/arduino-sketchbook"
1212

1313
matrix:
14-
# Test install_ide with no argument (using full version list). This would cause the Travis CI build to take much longer so I have it disabled
14+
# Test install_ide with no argument (using full version list). Causes the job to exceed Travis CI's maximum duration and thus can not be run.
1515
# - INSTALL_IDE_START_VERSION=""
16-
# Test install_ide using full version list. This usually takes longer that the maximum job duration and thus errors the build so it must be disabled.
16+
17+
# Test install_ide using full version list. Causes the job to exceed Travis CI's maximum duration and thus can not be run.
1718
#- INSTALL_IDE_START_VERSION="all" VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
18-
# Test install_ide using custom version list. Test the use of the special version names "oldest" and "newest" in a version list. Test use of "hourly" version name.
19-
- INSTALL_IDE_START_VERSION='("oldest" "1.8.1" "1.8.2" "newest" "hourly")' VERBOSITY_LEVEL=1 VERBOSE_COMPILATION="true"
19+
20+
# Test install_ide using custom version list
21+
# Test the use of the special version names "oldest", "newest", and "hourly" in a version list.
22+
# Test duplicates in version list
23+
- INSTALL_IDE_START_VERSION='("oldest" "1.8.3" "1.8.4" "1.8.4" "newest" "hourly")' VERBOSITY_LEVEL=1 VERBOSE_COMPILATION="true"
24+
25+
# Test install_ide using version range.
26+
# Test the use of the special version name "newest" in a version range.
27+
# Test installing the full sane range of IDE versions
28+
- INSTALL_IDE_START_VERSION="1.6.5-r5" INSTALL_IDE_END_VERSION="newest" VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
29+
30+
# Test the use of the special version name "hourly" in a version range.
31+
- INSTALL_IDE_START_VERSION="1.8.3" INSTALL_IDE_END_VERSION="hourly" VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
32+
2033
# Allowed to fail
2134
# Test install_ide using single version
22-
# test the failure behavior of install_package when a Boards Manager installation is attempted using an IDE version that doesn't support it.
35+
# Test the failure behavior of install_package when a Boards Manager installation is attempted using an IDE version that doesn't support it.
2336
- INSTALL_IDE_START_VERSION="1.6.3" VERBOSITY_LEVEL=2 VERBOSE_COMPILATION="false"
24-
# Test install_ide using version range. Test the use of the special version names "oldest" and "newest" in a version range.
25-
- INSTALL_IDE_START_VERSION="oldest" INSTALL_IDE_END_VERSION="newest" VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
2637

2738

2839
matrix:
@@ -112,58 +123,69 @@ before_install:
112123

113124

114125
script:
115-
# Test build_sketch without absolute path
116126
# Test library installed from .zip with rename
117127
# Test library installed from .zip with dot in the folder name
118128
# Test board from hardware package manually installed from compressed file download
119-
# Test build_sketch with an IDE version list
129+
# Test build_sketch with specific IDE version
130+
# Test build_sketch without absolute path
120131
- cd "${SKETCHBOOK_FOLDER}/libraries/CapacitiveSensor/examples/CapacitiveSensorSketch/"
121-
- build_sketch "CapacitiveSensorSketch.pde" "ATTinyCore-master:avr:attinyx5:LTO=disable,TimerClockSource=default,chip=85,clock=8internal,bod=disable" "false" '("1.8.1" "1.8.2")'
132+
- build_sketch "CapacitiveSensorSketch.pde" "ATTinyCore-master:avr:attinyx5:LTO=disable,TimerClockSource=default,chip=85,clock=8internal,bod=disable" "false" "1.8.4"
133+
122134
# Test library installed from .zip
123135
# Test board from hardware package installed via Boards Manager without URL
124136
# Test build_sketch with "newest" special version name
125137
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NewPing/examples/NewPingExample/NewPingExample.pde" "arduino:sam:arduino_due_x_dbg" "false" "newest"
138+
126139
# Test library installed from .git
127140
# Test board from hardware package installed with Boards Manager URL
128-
# Test build_sketch with specific IDE version
129-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/WirelessOregonV2/examples/OregonReceiver/OregonReceiver.ino" "MiniCore:avr:328:variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" "1.8.2"
141+
# Test build_sketch with an IDE version list
142+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/WirelessOregonV2/examples/OregonReceiver/OregonReceiver.ino" "MiniCore:avr:328:variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" '("1.8.3" "1.8.4")'
143+
130144
# Test library installed from .git with branch
131145
# Test board from hardware package manually installed by cloning Git repository
132-
# Test build_sketch with an IDE version range
133-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NanodeUNIO/examples/NanodeUNIO_test/NanodeUNIO_test.pde" "MightyCore:avr:1284:pinout=standard,variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" "1.8.1" "1.8.2"
146+
# Test build_sketch with an IDE version list using the "newest" special version name
147+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NanodeUNIO/examples/NanodeUNIO_test/NanodeUNIO_test.pde" "MightyCore:avr:1284:pinout=standard,variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" '("1.8.4" "newest")'
148+
134149
# Test library installed from .git with rename
135150
# Test board from hardware package manually installed by cloning Git repository with non-default branch
136-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/ArduinoShell/examples/ShellBlink/ShellBlink.ino" "mighty-1284p:avr:avr_developers" "false" "newest"
151+
# Test build_sketch with an IDE version range
152+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/ArduinoShell/examples/ShellBlink/ShellBlink.ino" "mighty-1284p:avr:avr_developers" "false" "1.8.3" "1.8.4"
153+
137154
# Test library installed from .git with branch and rename
138-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/max_7456/examples/HelloWorld/HelloWorld.ino" "arduino:avr:uno" "false" "newest"
139-
# Test library installed from Library Manager
140-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/Pushetta/examples/simple_notification/simple_notification.ino" "arduino:avr:uno" "false" "newest"
155+
# Test build_sketch with an IDE version range using the "newest" special version name
156+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/max_7456/examples/HelloWorld/HelloWorld.ino" "arduino:avr:uno" "false" "1.8.4" "newest"
141157

142-
# build_sketch with version argument tests
143158
# Test build_sketch with no IDE version argument (should use all installed IDE versions)
144159
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "arduino:avr:uno" "false"
160+
145161
# Test build_sketch with "all" IDE version name
146162
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "arduino:avr:uno" "false" "all"
147-
# Test build_sketch with "oldest" IDE version name
148-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "arduino:avr:uno" "false" "oldest"
163+
164+
# Test library installed from Library Manager
165+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/Pushetta/examples/simple_notification/simple_notification.ino" "arduino:avr:uno" "false" "newest"
166+
149167
# Test build_sketch allowed to fail (this will fail because WirelessOregonV2 is AVR specific)
150168
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/WirelessOregonV2/examples/OregonReceiver/OregonReceiver.ino" "arduino:sam:arduino_due_x_dbg" "true" "newest"
151169

152170
# build_sketch with folder argument tests:
171+
153172
# Test build_sketch with folder argument with specific IDE version
154-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "1.8.1"
155-
# Test build_sketch with folder argument with "oldest" IDE version name
156-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "oldest"
157-
# Test build_sketch with folder argument with "newest" IDE version name
158-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "newest"
159-
# Test build_sketch with folder argument with "all" IDE version name
160-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "all"
161-
# Test build_sketch with folder argument with no IDE version specified (should use all installed IDE versions)
162-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false"
173+
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "1.8.4"
174+
163175
# Test build_sketch with folder argument with an IDE version list
164-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" '("1.8.1" "1.8.2")'
176+
# Test build_sketch with an IDE version list using the "oldest" and "newest" special version names
177+
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" '("oldest" "newest")'
178+
165179
# Test build_sketch with folder argument with an IDE version range
166-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "1.8.1" "1.8.2"
180+
# Test build_sketch with an IDE version range using the "oldest" and "newest" special version names
181+
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "oldest" "newest"
182+
183+
# Test build_sketch with folder argument with no IDE version specified (should use all installed IDE versions)
184+
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false"
185+
186+
# Test build_sketch with folder argument with "all" IDE version name
187+
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics" "arduino:avr:uno" "false" "all"
188+
167189
# Test build_sketch with folder argument required to fail (this will fail because WirelessOregonV2 is AVR specific)
168190
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/WirelessOregonV2/examples" "arduino:sam:arduino_due_x_dbg" "require" "newest"
169191

0 commit comments

Comments
 (0)