Skip to content

Commit b31cb2e

Browse files
committed
Add ESP32 to Travis CI
1 parent 203b815 commit b31cb2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ env:
44
- IDE_VERSION=1.8.5
55
matrix:
66
- BOARD="arduino:avr:uno"
7+
- BOARD="espressif:esp32:esp32"
78
before_install:
89
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
910
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
1011
- mv arduino-$IDE_VERSION $HOME/arduino-ide
1112
- export PATH=$PATH:$HOME/arduino-ide
13+
- if [[ "$BOARD" =~ "espressif:esp32:" ]]; then
14+
mkdir -p $HOME/Arduino/hardware/espressif;
15+
git clone https://github.com/espressif/arduino-esp32.git $HOME/Arduino/hardware/espressif/esp32;
16+
pushd $HOME/Arduino/hardware/espressif/esp32/tools/;
17+
python get.py;
18+
popd;
19+
fi
1220
- buildExampleSketch() { arduino --verbose-build --verify --board $BOARD $PWD/examples/$1/$1.ino; }
1321
install:
1422
- mkdir -p $HOME/Arduino/libraries

0 commit comments

Comments
 (0)