forked from me-no-dev/ESPAsyncWebServer
Setup Github CI (#599)
* Setup Github CI * Update main.yml * Update build-pio.sh * Add error checks to PIO script * Update build-pio.sh
This commit is contained in:
+11
-4
@@ -4,21 +4,28 @@ BOARD=$1
|
||||
|
||||
echo -e "travis_fold:start:install_pio"
|
||||
pip install -U platformio
|
||||
if [ $? -ne 0 ]; then exit 1; fi
|
||||
|
||||
platformio lib install https://github.com/bblanchon/ArduinoJson.git
|
||||
python -m platformio lib --storage-dir $PWD
|
||||
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)
|
||||
platformio lib -g install https://github.com/me-no-dev/AsyncTCP.git
|
||||
python -m platformio lib -g install https://github.com/me-no-dev/AsyncTCP.git
|
||||
;;
|
||||
esp12e)
|
||||
platformio lib -g install https://github.com/me-no-dev/ESPAsyncTCP.git || true
|
||||
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 $PWD/examples/*/*.ino; do
|
||||
platformio ci $EXAMPLE -l '.' -b $BOARD
|
||||
python -m platformio ci $EXAMPLE -l '.' -b $BOARD
|
||||
if [ $? -ne 0 ]; then exit 1; fi
|
||||
done
|
||||
echo -e "travis_fold:end:test_pio"
|
||||
|
||||
Reference in New Issue
Block a user