kopia lustrzana https://github.com/jgromes/RadioLib
Added Travis build result check
rodzic
5e13817434
commit
be95be16d7
11
.travis.yml
11
.travis.yml
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue