|
1 | 1 | language: generic |
2 | | -env: |
3 | | - global: |
4 | | - - CLI_VERSION=latest |
5 | 2 | matrix: |
6 | 3 | include: |
7 | 4 | - env: |
|
10 | 7 | - BOARD="arduino:samd:mkrwifi1010" |
11 | 8 | - env: |
12 | 9 | - BOARD="arduino:samd:mkrgsm1400" |
| 10 | + - env: |
| 11 | + - BOARD="esp8266:esp8266:huzzah" |
13 | 12 | - env: |
14 | 13 | - NAME=Code Formatting Check |
15 | 14 | # must define an empty before_install phase, otherwise the default one is used |
@@ -42,15 +41,16 @@ matrix: |
42 | 41 | - codespell --skip="${TRAVIS_BUILD_DIR}/.git" --ignore-words="${TRAVIS_BUILD_DIR}/extras/codespell-ignore-words-list.txt" "${TRAVIS_BUILD_DIR}" |
43 | 42 | # default phases |
44 | 43 | 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 |
47 | 44 | - 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 |
49 | 46 | - 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; |
51 | 48 | - if [[ "$BOARD" =~ "arduino:samd:" ]]; then |
52 | 49 | arduino-cli core install arduino:samd; |
53 | 50 | 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 |
54 | 54 | - | |
55 | 55 | installLibrary() { |
56 | 56 | local -r repositoryFullName="$1" |
@@ -81,19 +81,21 @@ install: |
81 | 81 | - mkdir -p $HOME/Arduino/libraries |
82 | 82 | - ln -s $PWD $HOME/Arduino/libraries/. |
83 | 83 | script: |
84 | | - - buildExampleSketch ArduinoIoTCloud_LED_switch |
85 | | - - buildExampleSketch ArduinoIoTCloud_Travis_CI |
86 | 84 | - | |
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 |
89 | 92 | buildExampleSketch WiFi_Cloud_Blink; |
90 | 93 | buildExampleSketch MultiValue_example; |
91 | 94 | fi |
92 | 95 | - | |
93 | | - if [ "$BOARD" == "arduino:samd:mkrgsm1400" ]; |
94 | | - then buildExampleSketch GSM_Cloud_Blink; |
| 96 | + if [ "$BOARD" == "arduino:samd:mkrgsm1400" ]; then |
| 97 | + buildExampleSketch GSM_Cloud_Blink; |
95 | 98 | fi |
96 | | - - buildExampleUtilitySketch Provisioning |
97 | 99 | notifications: |
98 | 100 | webhooks: |
99 | 101 | urls: |
|
0 commit comments