Skip to content

Commit b20a40e

Browse files
author
Francois Best
committed
Fix USB requirements.
1 parent 253e41a commit b20a40e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
- PLATFORMIO_CI_SRC=examples/Callbacks
2727
- PLATFORMIO_CI_SRC=examples/DualMerger
2828
- PLATFORMIO_CI_SRC=examples/Input
29-
- PLATFORMIO_CI_SRC=examples/MidiUSB PLATFORMIO_CI_EXTRA_ARGS="--lib=external/midi-usb/src"
29+
- PLATFORMIO_CI_SRC=examples/MidiUSB REQUIRES_USB=1
3030
- PLATFORMIO_CI_SRC=examples/RPN_NRPN
3131
- PLATFORMIO_CI_SRC=examples/SimpleSynth
3232

@@ -74,7 +74,11 @@ script:
7474
# Build current example
7575
- |
7676
if [ ! "${BUILD_UNIT_TESTS}" ]; then
77-
platformio ci --lib="." --board=uno --board="due" --board="zero" --board="leonardo" $PLATFORMIO_CI_EXTRA_ARGS
77+
if [ "${REQUIRES_USB}"]; then
78+
platformio ci --lib="." --lib=external/midi-usb --board="due" --board="zero" --board="leonardo"
79+
else
80+
platformio ci --lib="." --board=uno --board="due" --board="zero" --board="leonardo"
81+
fi
7882
fi
7983
8084
after_success:

0 commit comments

Comments
 (0)