Try to build against PIO (#598)

This commit is contained in:
Me No Dev 2019-09-21 11:46:53 +03:00 committed by GitHub
parent aea43f98d1
commit 0769521ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -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

24
travis/build-pio.sh Normal file
View 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"