-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PlatformIO CI build all also for esp8266, except unsupported ones (e.…
…g. esp32-cam)
- Loading branch information
Showing
3 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,9 @@ | |
*.exe | ||
*.out | ||
*.app | ||
|
||
# PlatformIO in VScode | ||
.pio/ | ||
.vscode/ | ||
*.lnk | ||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,36 @@ rem Build all listed examples of this library on PIO CLI; may take some time | |
rem Verifies that library and all examples still compile | ||
|
||
setlocal EnableDelayedExpansion enableextensions | ||
set CI_DIR=%~dp0\..\async-esp-fs-webserver.pio-ci | ||
set CI_DIR=%~dp0..\async-esp-fs-webserver.pio-ci | ||
set EXAMPLES=simpleServerCaptive simpleServer withWebSocket customHTML customOptions gpio_list handleFormData highcharts remoteOTA esp32-cam | ||
::set EXAMPLES=simpleServerCaptive | ||
:: simpleServer withWebSocket customHTML | ||
FOR %%E IN (%EXAMPLES%) DO IF NOT EXIST %CI_DIR%\ci_ex_%%E MKDIR %CI_DIR%\ci_ex_%%E | ||
@echo on | ||
FOR %%E IN (%EXAMPLES%) DO ( | ||
pio ci -c platformio.ini --board=esp32dev --keep-build-dir --build-dir=%CI_DIR%\ci_ex_%%E --lib=. .\examples\%%E\*.* > %CI_DIR%\ci_ex_%%E\build.out.txt 2>%CI_DIR%\ci_ex_%%E\build.err.txt | ||
@for /f %%i in ("%CI_DIR%\ci_ex_%%E\build.err.txt") do @set size=%%~zi && @echo ###ERROR in %%i && @type %%i | ||
) | ||
@echo off | ||
:: type %CI_DIR%/ci_ex_%%E/build.err.txt | ||
:: note activation pio verbose option '-v' outputs a lot of text (~25k/compile, ~2MB/pio-ci) | ||
rem pio ci -c platformio.ini --board=esp32dev --build-dir=../ci_ex_simpleServer --keep-build-dir --lib=. .\examples\simpleServer\simpleServer.ino | ||
set BOARDS= esp32dev esp12e | ||
set OPT_esp12e=-O "[email protected]" | ||
set OPT_esp32dev=-O "[email protected]" | ||
set NOT_esp12e=esp32-cam | ||
set NOT_esp32dev=esp8266-app | ||
set EXCLIB= --exclude=lib\*\.git* --exclude=lib\*\.pio --exclude=lib\*\.vscode --exclude=lib\*\built-in-webpages --exclude=lib\*\examples | ||
|
||
FOR %%B IN (%BOARDS%) DO ( | ||
FOR %%E IN (%EXAMPLES%) DO ( | ||
if %%E==!NOT_%%B! ( | ||
echo ### not compiling %%E for %%B | ||
) else ( | ||
set CIEXDIR=%CI_DIR%\ci_ex_%%B_%%E | ||
IF EXIST "!CIEXDIR!" RMDIR /s/q "!CIEXDIR!" | ||
MKDIR "!CIEXDIR!" | ||
set OPT=!OPT_%%B! | ||
set OUT="!CIEXDIR!\build.out.txt" | ||
set ERR="!CIEXDIR!\build.err.txt" | ||
echo ### Compiling %%E for %%B | ||
echo +pio ci -b %%B !OPT! --keep-build-dir --build-dir="!CIEXDIR!\" --lib=. %EXCLIB% .\examples\%%E\*.* 1^>!OUT! 2^>!ERR! | ||
pio ci -b %%B !OPT! --keep-build-dir --build-dir="!CIEXDIR!" --lib=. %EXCLIB% .\examples\%%E\*.* >!OUT! 2>!ERR! | ||
FOR /f %%i IN (!ERR!) DO IF EXIST %%i IF %%~zi GTR 0 ECHO ###ERROR in %%i && TYPE %%i | ||
) | ||
echo ### DONE | ||
) | ||
) | ||
|
||
:: note activation pio verbose option '-v' generates a lot of output (~25k/compile, ~2MB/pio-ci) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters