Files
ESPAsyncWebServer/travis/common.sh
T

24 lines
643 B
Bash
Raw Normal View History

2016-02-01 18:00:53 +02:00
#!/bin/bash
function build_sketches()
{
local arduino=$1
2016-02-01 18:07:24 +02:00
local srcpath=$2
2016-02-01 19:27:08 +02:00
local platform=$3
2016-02-01 18:00:53 +02:00
local sketches=$(find $srcpath -name *.ino)
for sketch in $sketches; do
2016-02-01 19:27:08 +02:00
local sketchdir=$(dirname $sketch)
if [[ -f "$sketchdir/.$platform.skip" ]]; then
echo -e "\n\n ------------ Skipping $sketch ------------ \n\n";
continue
fi
2016-02-01 18:00:53 +02:00
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
}