forked from Aircoookie/ESPAsyncWebServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-pio.sh
31 lines (25 loc) · 850 Bytes
/
build-pio.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
BOARD=$1
echo -e "travis_fold:start:install_pio"
pip install -U platformio
if [ $? -ne 0 ]; then exit 1; fi
python -m platformio lib --storage-dir $TRAVIS_BUILD_DIR install
if [ $? -ne 0 ]; then exit 1; fi
python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git
if [ $? -ne 0 ]; then exit 1; fi
case $BOARD in
esp32dev)
python -m platformio lib -g install https://github.com/me-no-dev/AsyncTCP.git
;;
esp12e)
python -m platformio lib -g install https://github.com/me-no-dev/ESPAsyncTCP.git || true
;;
esac
if [ $? -ne 0 ]; then exit 1; fi
echo -e "travis_fold:end:install_pio"
echo -e "travis_fold:start:test_pio"
for EXAMPLE in $TRAVIS_BUILD_DIR/examples/*/*.ino; do
python -m platformio ci $EXAMPLE -l '.' -b $BOARD
if [ $? -ne 0 ]; then exit 1; fi
done
echo -e "travis_fold:end:test_pio"