10000 add script for travis · faraday-motion/arduinoWebSockets@64c8908 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64c8908

Browse files
committed
add script for travis
1 parent 87c6c80 commit 64c8908

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

examples/ParticleWebSocketClient/.esp8266.skip

Whitespace-only changes.

examples/WebSocketClientAVR/.esp8266.skip

Whitespace-only changes.

travis/common.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
function build_sketches()
4+
{
5+
local arduino=$1
6+
local srcpath=$2
7+
local platform=$3
8+
local sketches=$(find $srcpath -name *.ino)
9+
for sketch in $sketches; do
10+
local sketchdir=$(dirname $sketch)
11+
if [[ -f "$sketchdir/.$platform.skip" ]]; then
12+
echo -e "\n\n ------------ Skipping $sketch ------------ \n\n";
13+
continue
14+
fi
15+
echo -e "\n\n ------------ Building $sketch ------------ \n\n";
16+
$arduino --verify $sketch;
17+
local result=$?
18+
if [ $result -ne 0 ]; then
19+
echo "Build failed ($1)"
20+
return $result
21+
fi
22+
done
23+
}
24+

0 commit comments

Comments
 (0)
0