compile with esp mqtt lib

This commit is contained in:
technyon
2023-01-27 19:29:13 +01:00
parent 10650c1132
commit c9dbbb5dc1
113 changed files with 9740 additions and 2997 deletions

View File

@@ -0,0 +1,22 @@
import os
Import("env", "projenv")
# Dump build environment (for debug purpose)
print(env.Dump())
# access to global build environment
print(env)
# access to the project build environment
# (used for source files located in the "src" folder)
print(projenv)
def generateCoverageInfo(source, target, env):
for file in os.listdir("test"):
os.system(".pio/build/native/program test/"+file)
os.system("lcov -d .pio/build/native/ -c -o lcov.info")
os.system("lcov --remove lcov.info '*Unity*' '*unity*' '/usr/include/*' '*/test/*' -o filtered_lcov.info")
os.system("genhtml -o cov/ --demangle-cpp filtered_lcov.info")
env.AddPostAction(".pio/build/native/program", generateCoverageInfo)