diff --git a/examples/ParticleWebSocketClient/.esp8266.skip b/examples/ParticleWebSocketClient/.esp8266.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/WebSocketClientAVR/.esp8266.skip b/examples/WebSocketClientAVR/.esp8266.skip new file mode 100644 index 0000000..e69de29 diff --git a/travis/common.sh b/travis/common.sh new file mode 100644 index 0000000..4bcd81b --- /dev/null +++ b/travis/common.sh @@ -0,0 +1,24 @@ +#!/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 +} +