Travis added build output

pull/13/head
Jan Gromeš 2018-09-22 18:09:07 +02:00
rodzic b4ffd26477
commit 4b3be2797a
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

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