arduino-pico/tests/build-tinyusb.sh
Earle F. Philhower, III 8cf8923a18
Update to Adafruit_TinyUSB_Arduino 1.12.0 (#654)
* Update to Adafruit_TinyUSB_Arduino 1.12.0

* DualRole requires add'l libraries, skip in CI
2022-06-24 11:24:31 -07:00

38 lines
834 B
Bash
Executable file

#!/usr/bin/env bash
cache_dir=$(mktemp -d)
source "$TRAVIS_BUILD_DIR"/tests/common.sh
install_arduino nodebug
# Replace the skip function to only build TinyUSB tests
function skip_ino()
{
local ino=$1
local skiplist=""
echo $ino | grep -q Adafruit_TinyUSB_Arduino
if [ $? -eq 0 ]; then
# Add items to the following list with "\n" netween them to skip running. No spaces, tabs, etc. allowed
read -d '' skiplist << EOL || true
/mouse_external_flash/
/hid_keyboard/
/msc_external_flash/
/msc_external_flash_sdcard/
/msc_internal_flash_samd/
/msc_sd/
/msc_sdfat/
/midi_pizza_box_dj/
/msc_esp32_file_browser/
/DualRole/
EOL
echo $ino | grep -q -F "$skiplist"
echo $(( 1 - $? ))
else
echo 1
fi
}
build_sketches_with_arduino 1 0 "--usbstack tinyusb"
rm -rf "$cache_dir"