|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 | 3 | echo -e "travis_fold:start:install_pio"
|
4 |
| - |
5 | 4 | pip install -U platformio
|
6 | 5 | if [ $? -ne 0 ]; then exit 1; fi
|
| 6 | +echo -e "travis_fold:end:install_pio" |
7 | 7 |
|
8 |
| -python -m platformio lib --storage-dir $PWD |
| 8 | +echo -e "travis_fold:start:install_lib" |
| 9 | +python -m platformio lib --storage-dir $TRAVIS_BUILD_DIR install |
9 | 10 | if [ $? -ne 0 ]; then exit 1; fi
|
10 |
| - |
11 |
| -echo -e "travis_fold:end:install_pio" |
| 11 | +echo -e "travis_fold:end:install_lib" |
12 | 12 |
|
13 | 13 | echo -e "travis_fold:start:test_pio"
|
14 |
| -for EXAMPLE in $PWD/examples/*/*.ino; do |
| 14 | +for EXAMPLE in $TRAVIS_BUILD_DIR/examples/*/*.ino; do |
15 | 15 | python -m platformio ci $EXAMPLE -l '.' -b esp12e
|
16 | 16 | if [ $? -ne 0 ]; then exit 1; fi
|
17 | 17 | done
|
18 | 18 | echo -e "travis_fold:end:test_pio"
|
| 19 | + |
| 20 | +echo -e "travis_fold:start:install_json" |
| 21 | +python -m platformio lib -g install https://github.com/bblanchon/ArduinoJson.git |
| 22 | +if [ $? -ne 0 ]; then exit 1; fi |
| 23 | +echo -e "travis_fold:end:install_json" |
| 24 | + |
| 25 | +cd $HOME/ |
| 26 | +echo -e "travis_fold:start:install_web_server" |
| 27 | +git clone https://github.com/me-no-dev/ESPAsyncWebServer |
| 28 | +if [ $? -ne 0 ]; then exit 1; fi |
| 29 | +python -m platformio lib --storage-dir $HOME/ESPAsyncWebServer install |
| 30 | +if [ $? -ne 0 ]; then exit 1; fi |
| 31 | +echo -e "travis_fold:end:install_web_server" |
| 32 | + |
| 33 | +echo -e "travis_fold:start:test_web_server" |
| 34 | +for EXAMPLE in $HOME/ESPAsyncWebServer/examples/*/*.ino; do |
| 35 | + python -m platformio ci $EXAMPLE -l $TRAVIS_BUILD_DIR -l $HOME/ESPAsyncWebServer -b esp12e |
| 36 | + if [ $? -ne 0 ]; then exit 1; fi |
| 37 | +done |
| 38 | +echo -e "travis_fold:end:test_web_server" |
0 commit comments