Try to build against PIO (#598)
This commit is contained in:
parent
aea43f98d1
commit
0769521ef8
10
.travis.yml
10
.travis.yml
|
@ -24,6 +24,16 @@ jobs:
|
|||
stage: build
|
||||
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:
|
||||
email:
|
||||
on_success: change
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue