mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Remove version spec from IDF tests
This commit is contained in:
parent
e704648b67
commit
96bfd024a1
7 changed files with 22 additions and 15 deletions
15
.clang-tidy
15
.clang-tidy
|
@ -85,8 +85,21 @@ Checks: >-
|
||||||
-readability-redundant-string-init,
|
-readability-redundant-string-init,
|
||||||
-readability-uppercase-literal-suffix,
|
-readability-uppercase-literal-suffix,
|
||||||
-readability-use-anyofallof,
|
-readability-use-anyofallof,
|
||||||
|
-cppcoreguidelines-avoid-const-or-ref-data-members,
|
||||||
|
-cppcoreguidelines-macro-to-enum,
|
||||||
|
-cppcoreguidelines-use-default-member-init,
|
||||||
|
-misc-const-correctness,
|
||||||
|
-misc-include-cleaner,
|
||||||
|
-misc-use-anonymous-namespace,
|
||||||
|
-modernize-macro-to-enum,
|
||||||
|
-modernize-type-traits,
|
||||||
|
-modernize-use-constraints,
|
||||||
|
-performance-enum-size,
|
||||||
|
-readability-avoid-nested-conditional-operator,
|
||||||
|
-readability-container-contains,
|
||||||
|
-readability-redundant-inline-specifier,
|
||||||
|
-readability-redundant-member-init,
|
||||||
WarningsAsErrors: '*'
|
WarningsAsErrors: '*'
|
||||||
AnalyzeTemporaryDtors: false
|
|
||||||
FormatStyle: google
|
FormatStyle: google
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
- key: google-readability-function-size.StatementThreshold
|
- key: google-readability-function-size.StatementThreshold
|
||||||
|
|
|
@ -139,7 +139,7 @@ extra_scripts = post:esphome/components/esp32/post_build.py.script
|
||||||
extends = common:idf
|
extends = common:idf
|
||||||
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.06/platform-espressif32.zip
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.06/platform-espressif32.zip
|
||||||
platform_packages =
|
platform_packages =
|
||||||
pioarduino/framework-espidf@https://github.com/pioarduino/esp-idf/releases/download/v5.1.4.241024/esp-idf-v5.1.4.zip
|
pioarduino/framework-espidf@https://github.com/pioarduino/esp-idf/releases/download/v5.1.5/esp-idf-v5.1.5.zip
|
||||||
|
|
||||||
framework = espidf
|
framework = espidf
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|
|
@ -64,7 +64,7 @@ def clang_options(idedata):
|
||||||
# allow to condition code on the presence of clang-tidy
|
# allow to condition code on the presence of clang-tidy
|
||||||
"-DCLANG_TIDY",
|
"-DCLANG_TIDY",
|
||||||
# (esp-idf) Disable this header because they use asm with registers clang-tidy doesn't know
|
# (esp-idf) Disable this header because they use asm with registers clang-tidy doesn't know
|
||||||
"-D__XTENSA_API_H__",
|
# "-D__XTENSA_API_H__",
|
||||||
# (esp-idf) Fix __once_callable in some libstdc++ headers
|
# (esp-idf) Fix __once_callable in some libstdc++ headers
|
||||||
"-D_GLIBCXX_HAVE_TLS",
|
"-D_GLIBCXX_HAVE_TLS",
|
||||||
]
|
]
|
||||||
|
@ -101,9 +101,11 @@ def clang_options(idedata):
|
||||||
for directory in list(idedata["includes"]["build"]):
|
for directory in list(idedata["includes"]["build"]):
|
||||||
# skip our own directories, we add those later
|
# skip our own directories, we add those later
|
||||||
if (
|
if (
|
||||||
not directory.startswith(f"{root_path}/")
|
not directory.startswith(f"{root_path}")
|
||||||
or directory.startswith(f"{root_path}/.pio/")
|
or directory.startswith(f"{root_path}/.pio")
|
||||||
or directory.startswith(f"{root_path}/managed_components/")
|
or directory.startswith(f"{root_path}/.platformio")
|
||||||
|
or directory.startswith(f"{root_path}/.temp")
|
||||||
|
or directory.startswith(f"{root_path}/managed_components")
|
||||||
):
|
):
|
||||||
cmd.extend(["-isystem", directory])
|
cmd.extend(["-isystem", directory])
|
||||||
|
|
||||||
|
@ -235,7 +237,7 @@ def main():
|
||||||
|
|
||||||
failed_files = []
|
failed_files = []
|
||||||
try:
|
try:
|
||||||
executable = get_binary("clang-tidy", 14)
|
executable = get_binary("clang-tidy", 18)
|
||||||
task_queue = queue.Queue(args.jobs)
|
task_queue = queue.Queue(args.jobs)
|
||||||
lock = threading.Lock()
|
lock = threading.Lock()
|
||||||
for _ in range(args.jobs):
|
for _ in range(args.jobs):
|
||||||
|
|
|
@ -6,8 +6,6 @@ esp32:
|
||||||
board: lolin_c3_mini
|
board: lolin_c3_mini
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
version: 5.1.4
|
|
||||||
release: "241024"
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: VERY_VERBOSE
|
level: VERY_VERBOSE
|
||||||
|
|
|
@ -6,8 +6,6 @@ esp32:
|
||||||
board: nodemcu-32s
|
board: nodemcu-32s
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
version: 5.1.4
|
|
||||||
release: "241024"
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: VERY_VERBOSE
|
level: VERY_VERBOSE
|
||||||
|
|
|
@ -7,8 +7,6 @@ esp32:
|
||||||
variant: ESP32S2
|
variant: ESP32S2
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
version: 5.1.4
|
|
||||||
release: "241024"
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: VERY_VERBOSE
|
level: VERY_VERBOSE
|
||||||
|
|
|
@ -7,8 +7,6 @@ esp32:
|
||||||
variant: ESP32S3
|
variant: ESP32S3
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
version: 5.1.4
|
|
||||||
release: "241024"
|
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
level: VERY_VERBOSE
|
level: VERY_VERBOSE
|
||||||
|
|
Loading…
Reference in a new issue