[Travis] Updated script to match new examples structure

This commit is contained in:
jgromes 2019-02-10 10:21:27 +01:00
parent eb659812c9
commit b4eb421553

View file

@ -18,14 +18,13 @@ install:
- ln -s $PWD $HOME/Arduino/libraries/RadioLib - ln -s $PWD $HOME/Arduino/libraries/RadioLib
script: script:
# build all example sketches # build all example sketches
- cd examples - for example in $(find $PWD/examples -name '*.ino'); do
- for d in */ ; do echo -e "\n\033[1;33mBuilding $example ... \033[0m";
echo -e "\n\033[1;33mBuilding ${d%/} ... \033[0m"; arduino --verify --board $BOARD $example;
arduino --verify --board $BOARD $PWD/${d%/}/${d%/}.ino;
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\033[1;31m${d%/} build FAILED\033[0m\n"; echo -e "\033[1;31m$example build FAILED\033[0m\n";
exit 1; exit 1;
else else
echo -e "\033[1;32m${d%/} build PASSED\033[0m\n"; echo -e "\033[1;32m$example build PASSED\033[0m\n";
fi fi
done done