Skip to content

Commit 9c51e94

Browse files
committed
Combine tests in .travis.yml
The "oldest" - "newest" job time is exceeding Travis CI's maximum duration so I must reduce the number of compilations to make it finish sooner.
1 parent d80d2a2 commit 9c51e94

File tree

1 file changed

+17
-31
lines changed

1 file changed

+17
-31
lines changed

.travis.yml

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ before_install:
8686
# - install_library
8787
# Test library install from .zip file. A non-GitHub library download must be used because GitHub appends -{branch name} or -{release version} to the .zip downloads and having a library folder installed whos name contains "-" causes arduino 1.5.6 or older to hang.
8888
- install_library "https://bitbucket.org/teckel12/arduino-new-ping/downloads/NewPing_v1.8.zip"
89-
# Test library install from .zip file with rename. If the rename doesn't work then any job verifying with Arduino IDE 1.5.2 - 1.5.6-r2 will hang because GitHub changes the folder name to MPU9250-master, which is not a valid folder name on those IDE versions.
90-
- install_library "https://github.com/brianc118/MPU9250/archive/master.zip" "MPU9250"
91-
# Test library install from .zip file/folder that has a dot in the name. It must be renames so that it won't have a hyphen in the folder name, which causes verification to hang with Arduino IDE 1.5.2 - 1.5.6-r2.
89+
# Test library install from .zip file/folder that has a dot in the name. It must be renamed so that it won't have a hyphen in the folder name, which causes verification to hang with Arduino IDE 1.5.2 - 1.5.6-r2.
90+
# Test library install from .zip file with rename.
9291
- install_library "https://github.com/arduino-libraries/CapacitiveSensor/archive/0.5.1.zip" "CapacitiveSensor"
9392
# Test library install from git repo
9493
- install_library "https://github.com/sfrwmaker/WirelessOregonV2.git"
@@ -113,41 +112,28 @@ before_install:
113112

114113

115114
script:
116-
# Verify sketches:
117-
# build_sketch arguments: sketch name, fqbn, IDE version, allow failure
118-
# IDE version: Use "all" for IDE version argument to verify sketch with all versions of the Arduino IDE, use "newest" for IDE version argument to verify sketch with the newest version of the Arduino IDE
119-
120-
# Installed package tests:
121-
# Test board from hardware package installed via Boards Manager without URL
122-
# Test build_sketch with "newest" special version name
123-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "arduino:sam:arduino_due_x_dbg" "false" "newest"
124-
# Test board from hardware package installed with Boards Manager URL
125-
# Test build_sketch with specific IDE version
126-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "MiniCore:avr:328:variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" "1.8.1"
127-
# Test board from hardware package manually installed from compressed file download
128-
# Test build_sketch with an IDE version list
129-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "ATTinyCore-master:avr:attinyx5:LTO=disable,TimerClockSource=default,chip=85,clock=8internal,bod=disable" "false" '("1.8.1" "1.8.2")'
130-
# Test board from hardware package manually installed by cloning Git repository
131-
# Test build_sketch with an IDE version range
132-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "MightyCore:avr:1284:pinout=standard,variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external" "false" "1.8.1" "1.8.2"
133-
# Test board from hardware package manually installed by cloning Git repository with non-default branch
134-
- build_sketch "${APPLICATION_FOLDER}/arduino/examples/01.Basics/BareMinimum/BareMinimum.ino" "mighty-1284p:avr:avr_developers" "false" "newest"
135-
136-
# Installed library tests:
137115
# Test build_sketch without absolute path
138116
# Test library installed from .zip with rename
139-
- cd "${SKETCHBOOK_FOLDER}/libraries/MPU9250/examples/MPU9250/"
140-
- build_sketch "MPU9250.ino" "arduino:avr:uno" "false" "newest"
141117
# Test library installed from .zip with dot in the folder name
142-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/CapacitiveSensor/examples/CapacitiveSensorSketch/CapacitiveSensorSketch.pde" "arduino:avr:uno" "false" "newest"
118+
# Test board from hardware package manually installed from compressed file download
119+
# Test build_sketch with an IDE version list
120+
- 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")'
143122
# Test library installed from .zip
144-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NewPing/examples/NewPingExample/NewPingExample.pde" "arduino:avr:uno" "false" "newest"
123+
# Test board from hardware package installed via Boards Manager without URL
124+
# Test build_sketch with "newest" special version name
125+
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NewPing/examples/NewPingExample/NewPingExample.pde" "arduino:sam:arduino_due_x_dbg" "false" "newest"
145126
# Test library installed from .git
146-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/WirelessOregonV2/examples/OregonReceiver/OregonReceiver.ino" "arduino:avr:uno" "false" "newest"
127+
# 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"
147130
# Test library installed from .git with branch
148-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/NanodeUNIO/examples/NanodeUNIO_test/NanodeUNIO_test.pde" "arduino:avr:uno" "false" "newest"
131+
# 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"
149134
# Test library installed from .git with rename
150-
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/ArduinoShell/examples/ShellBlink/ShellBlink.ino" "arduino:avr:uno" "false" "newest"
135+
# 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"
151137
# Test library installed from .git with branch and rename
152138
- build_sketch "${SKETCHBOOK_FOLDER}/libraries/max_7456/examples/HelloWorld/HelloWorld.ino" "arduino:avr:uno" "false" "newest"
153139
# Test library installed from Library Manager

0 commit comments

Comments
 (0)