Skip to content

Commit c290eb7

Browse files
committed
try esp32?
1 parent c32b532 commit c290eb7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ script:
77
- build_platform leonardo
88
- build_platform zero
99
- build_platform esp8266
10+
- build_platform esp32
1011
notifications:
1112
email:
1213
on_success: change

install.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ fi
88

99
# associative array for the platforms that will be verified in build_main_platforms()
1010
# this will be eval'd in the functions below because arrays can't be exported
11-
export MAIN_PLATFORMS='declare -A main_platforms=( [uno]="arduino:avr:uno" [due]="arduino:sam:arduino_due_x" [zero]="arduino:samd:arduino_zero_native" [esp8266]="esp8266:esp8266:huzzah:FlashSize=4M3M,CpuFrequency=80" [leonardo]="arduino:avr:leonardo" [m4]="adafruit:samd:adafruit_metro_m4" [mega2560]="arduino:avr:mega:cpu=atmega2560" )'
11+
# Uno is ATmega328, Zero is SAMD21G18, ESP8277, Leonardo is ATmega32u4, M4 is SAMD51, Mega is ATmega2560, ESP32
12+
export MAIN_PLATFORMS='declare -A main_platforms=( [uno]="arduino:avr:uno" [due]="arduino:sam:arduino_due_x" [zero]="arduino:samd:arduino_zero_native" [esp8266]="esp8266:esp8266:huzzah:FlashSize=4M3M,CpuFrequency=80" [leonardo]="arduino:avr:leonardo" [m4]="adafruit:samd:adafruit_metro_m4" [mega2560]="arduino:avr:mega:cpu=atmega2560" [esp32]="espressif:esp32:esp32:FlashFreq=80" )'
1213

1314
# associative array for other platforms that can be called explicitly in .travis.yml configs
1415
# this will be eval'd in the functions below because arrays can't be exported
@@ -46,6 +47,18 @@ echo -n "ADD PACKAGE INDEX: "
4647
DEPENDENCY_OUTPUT=$(arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs 2>&1)
4748
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi
4849

50+
echo -n "ESP32: "
51+
DEPENDENCY_OUTPUT=$(mkdir -p $HOME/Arduino/hardware/espressif &&
52+
cd $HOME/Arduino/hardware/espressif &&
53+
git clone https://github.com/espressif/arduino-esp32.git esp32 &&
54+
cd esp32/tools/ &&
55+
python get.py &&
56+
cd $TRAVIS_BUILD_DIR)
57+
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi
58+
59+
DEPENDENCY_OUTPUT=$(arduino --install-boards arduino:sam 2>&1)
60+
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi
61+
4962
echo -n "DUE: "
5063
DEPENDENCY_OUTPUT=$(arduino --install-boards arduino:sam 2>&1)
5164
if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi

0 commit comments

Comments
 (0)