Skip to content

Commit dc1c008

Browse files
committed
Install ESP8266 toolchain for building ArduinoIoTCloud library examples for ESP8266
1 parent 50972f1 commit dc1c008

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.travis.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
language: generic
2-
env:
3-
global:
4-
- CLI_VERSION=latest
52
matrix:
63
include:
74
- env:
@@ -10,6 +7,8 @@ matrix:
107
- BOARD="arduino:samd:mkrwifi1010"
118
- env:
129
- BOARD="arduino:samd:mkrgsm1400"
10+
- env:
11+
- BOARD="esp8266:esp8266:huzzah"
1312
- env:
1413
- NAME=Code Formatting Check
1514
# must define an empty before_install phase, otherwise the default one is used
@@ -42,15 +41,16 @@ matrix:
4241
- codespell --skip="${TRAVIS_BUILD_DIR}/.git" --ignore-words="${TRAVIS_BUILD_DIR}/extras/codespell-ignore-words-list.txt" "${TRAVIS_BUILD_DIR}"
4342
# default phases
4443
before_install:
45-
- wget http://downloads.arduino.cc/arduino-cli/arduino-cli-$CLI_VERSION-linux64.tar.bz2
46-
- tar xf arduino-cli-$CLI_VERSION-linux64.tar.bz2
4744
- mkdir -p "$HOME/bin"
48-
- mv arduino-cli $HOME/bin/arduino-cli
45+
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$HOME/bin" sh
4946
- export PATH="$PATH:$HOME/bin"
50-
- arduino-cli core update-index
47+
- arduino-cli core update-index --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json;
5148
- if [[ "$BOARD" =~ "arduino:samd:" ]]; then
5249
arduino-cli core install arduino:samd;
5350
fi
51+
- if [[ "$BOARD" == "esp8266:esp8266" ]]; then
52+
arduino-cli core install esp8266:esp8266 --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json;
53+
fi
5454
- |
5555
installLibrary() {
5656
local -r repositoryFullName="$1"
@@ -81,19 +81,21 @@ install:
8181
- mkdir -p $HOME/Arduino/libraries
8282
- ln -s $PWD $HOME/Arduino/libraries/.
8383
script:
84-
- buildExampleSketch ArduinoIoTCloud_LED_switch
85-
- buildExampleSketch ArduinoIoTCloud_Travis_CI
8684
- |
87-
if [ "$BOARD" == "arduino:samd:mkr1000" ] || [ "$BOARD" == "arduino:samd:mkrwifi1010" ];
88-
then
85+
if [ "$BOARD" == "arduino:samd:mkr1000" ] || [ "$BOARD" == "arduino:samd:mkrwifi1010" ] || [ "$BOARD" == "arduino:samd:mkrgsm1400" ]; then
86+
buildExampleSketch ArduinoIoTCloud_LED_switch;
87+
buildExampleSketch ArduinoIoTCloud_Travis_CI;
88+
buildExampleUtilitySketch Provisioning;
89+
fi
90+
- |
91+
if [ "$BOARD" == "arduino:samd:mkr1000" ] || [ "$BOARD" == "arduino:samd:mkrwifi1010" ]; then
8992
buildExampleSketch WiFi_Cloud_Blink;
9093
buildExampleSketch MultiValue_example;
9194
fi
9295
- |
93-
if [ "$BOARD" == "arduino:samd:mkrgsm1400" ];
94-
then buildExampleSketch GSM_Cloud_Blink;
96+
if [ "$BOARD" == "arduino:samd:mkrgsm1400" ]; then
97+
buildExampleSketch GSM_Cloud_Blink;
9598
fi
96-
- buildExampleUtilitySketch Provisioning
9799
notifications:
98100
webhooks:
99101
urls:

0 commit comments

Comments
 (0)