forked from me-no-dev/ESPAsyncWebServer
Try to build against PIO (#598)
This commit is contained in:
10
.travis.yml
10
.travis.yml
@ -24,6 +24,16 @@ jobs:
|
|||||||
stage: build
|
stage: build
|
||||||
script: bash $TRAVIS_BUILD_DIR/travis/build.sh esp8266
|
script: bash $TRAVIS_BUILD_DIR/travis/build.sh esp8266
|
||||||
|
|
||||||
|
- name: "Build Platformio ESP32"
|
||||||
|
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
|
||||||
|
stage: build
|
||||||
|
script: bash $TRAVIS_BUILD_DIR/travis/build-pio.sh esp32dev
|
||||||
|
|
||||||
|
- name: "Build Platformio ESP8266"
|
||||||
|
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
|
||||||
|
stage: build
|
||||||
|
script: bash $TRAVIS_BUILD_DIR/travis/build-pio.sh esp12e
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
|
24
travis/build-pio.sh
Normal file
24
travis/build-pio.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BOARD=$1
|
||||||
|
|
||||||
|
echo -e "travis_fold:start:install_pio"
|
||||||
|
pip install -U platformio
|
||||||
|
|
||||||
|
platformio lib install https://github.com/bblanchon/ArduinoJson.git
|
||||||
|
|
||||||
|
case $BOARD in
|
||||||
|
esp32dev)
|
||||||
|
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
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
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
|
||||||
|
done
|
||||||
|
echo -e "travis_fold:end:test_pio"
|
Reference in New Issue
Block a user