File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ArduinoJson=5.13.4
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ for EXAMPLE in "$EXAMPLEDIR"/*; do
7474 echo " #include <Arduino.h>" > " $MAINCPP "
7575 cat " $INOFILE " >> " $MAINCPP "
7676 rm " $INOFILE "
77+ # If the example has dependencies, rewrite platformio.ini
78+ if [[ -f " $EXAMPLEDIR /$EXAMPLENAME /.ci_lib_deps" ]]; then
79+ LIB_DEPS=$( head -n1 " $EXAMPLEDIR /$EXAMPLENAME /.ci_lib_deps" )
80+ sed " s#\\ #lib_deps#lib_deps = $LIB_DEPS #" " $PROJECTDIR /platformio.ini" > " $PROJECTDIR /platformio.ini.tmp"
81+ mv " $PROJECTDIR /platformio.ini.tmp" " $PROJECTDIR /platformio.ini"
82+ fi
7783 # Try building the application (+e as we want to test every example and get a
7884 # summary on what is working)
7985 set +e
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ default_envs = wrover, wroom
55platform = espressif32
66board = esp32dev
77framework = arduino
8+ # lib_deps # do not remove, the build script uses this as marker to insert example-specific dependencies
89
910[env:wrover]
1011board_build.partitions = partitions_wrover.csv
You can’t perform that action at this time.
0 commit comments