Travis fix for ESP8266
This commit is contained in:
parent
8887bac07f
commit
d8350c7e5a
1 changed files with 23 additions and 6 deletions
17
.travis.yml
17
.travis.yml
|
@ -39,8 +39,23 @@ branches:
|
|||
- master
|
||||
|
||||
script:
|
||||
# set sketch skipping pattern for some boards
|
||||
if [[ "$BOARD" =~ "esp8266:esp8266:" ]]; then
|
||||
# on ESP8266, skip HTTP and MQTT examples
|
||||
SKIP_PAT='(HTTP|MQTT).*ino'
|
||||
else
|
||||
# default skip pattern (matches everything)
|
||||
SKIP_PAT='.*'
|
||||
fi
|
||||
|
||||
# build all example sketches
|
||||
- for example in $(find $PWD/examples -name '*.ino' | sort); do
|
||||
# check whether to skip this sketch
|
||||
if [[ ${example} =~ $PAT2 ]]; then
|
||||
# skip sketch
|
||||
echo -e "\n\033[1;33mSkipped ${example##*/} (matched with $SKIP_PAT)\033[0m";
|
||||
else
|
||||
# build sketch
|
||||
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";
|
||||
arduino --verify --board $BOARD $example;
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -49,7 +64,9 @@ script:
|
|||
else
|
||||
echo -e "\033[1;32m${example##*/} build PASSED\033[0m\n";
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# generate Doxygen documentation (only for Arduino UNO)
|
||||
- if [ $BOARD = "arduino:avr:uno" ]; then
|
||||
sudo apt-get update;
|
||||
|
|
Loading…
Add table
Reference in a new issue