Skip to content

Commit

Permalink
enhance PIO CI script, to report build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rob040 committed Jan 5, 2024
1 parent 03af2c3 commit beace88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pio_ci_ex_ALL.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
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
Expand All @@ -10,6 +11,7 @@ FOR %%E IN (%EXAMPLES%) DO IF NOT EXIST %CI_DIR%\ci_ex_%%E MKDIR %CI_DIR%\ci_ex
@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
Expand Down

0 comments on commit beace88

Please sign in to comment.