Added Travis build result check

pull/13/head
Jan Gromeš 2018-09-22 17:49:49 +02:00
rodzic 5e13817434
commit be95be16d7
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -26,5 +26,14 @@ script:
# build all example sketches
- cd examples
- for d in */ ; do
arduino --verify --board $BOARD $PWD/${d%/}/${d%/}.ino;
local status;
status = $(arduino --verify --board $BOARD $PWD/${d%/}/${d%/}.ino 2>&1);
if [ $status -ne 0 ]; then
# example build failed
echo -e "\033[0;31m${d%/} build failed"
return $status;
else
# example build succeeded
echo -e "\033[0;32m${d%/} build passed"
fi
done