Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 0769521

Browse files
authored
Try to build against PIO (me-no-dev#598)
1 parent aea43f9 commit 0769521

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
stage: build
2525
script: bash $TRAVIS_BUILD_DIR/travis/build.sh esp8266
2626

27+
- name: "Build Platformio ESP32"
28+
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
29+
stage: build
30+
script: bash $TRAVIS_BUILD_DIR/travis/build-pio.sh esp32dev
31+
32+
- name: "Build Platformio ESP8266"
33+
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
34+
stage: build
35+
script: bash $TRAVIS_BUILD_DIR/travis/build-pio.sh esp12e
36+
2737
notifications:
2838
email:
2939
on_success: change

travis/build-pio.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
BOARD=$1
4+
5+
echo -e "travis_fold:start:install_pio"
6+
pip install -U platformio
7+
8+
platformio lib install https://github.com/bblanchon/ArduinoJson.git
9+
10+
case $BOARD in
11+
esp32dev)
12+
platformio lib -g install https://github.com/me-no-dev/AsyncTCP.git
13+
;;
14+
esp12e)
15+
platformio lib -g install https://github.com/me-no-dev/ESPAsyncTCP.git || true
16+
;;
17+
esac
18+
echo -e "travis_fold:end:install_pio"
19+
20+
echo -e "travis_fold:start:test_pio"
21+
for EXAMPLE in $PWD/examples/*/*.ino; do
22+
platformio ci $EXAMPLE -l '.' -b $BOARD
23+
done
24+
echo -e "travis_fold:end:test_pio"

0 commit comments

Comments
 (0)