Tasmota/lib/ESPAsyncUDP-master/travis/common.sh
ascillato fa12295beb Updated esp-knx-ip library
Updated esp-knx-ip library with a merged version that allows to select multicast library to use:
* WIFI UDP (for esp lib 2.3.0 and up)
* AsyncUDP (for esp lib 2.4.0 and up)
The selection can be done with a definition key in the file esp-knx-ip.h
2018-05-18 20:42:23 -03:00

24 lines
643 B
Bash

#!/bin/bash
function build_sketches()
{
local arduino=$1
local srcpath=$2
local platform=$3
local sketches=$(find $srcpath -name *.ino)
for sketch in $sketches; do
local sketchdir=$(dirname $sketch)
if [[ -f "$sketchdir/.$platform.skip" ]]; then
echo -e "\n\n ------------ Skipping $sketch ------------ \n\n";
continue
fi
echo -e "\n\n ------------ Building $sketch ------------ \n\n";
$arduino --verify $sketch;
local result=$?
if [ $result -ne 0 ]; then
echo "Build failed ($1)"
return $result
fi
done
}