-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
39 lines (36 loc) · 1.34 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = src
test_dir = test
default_envs = test-native
[env]
lib_deps =
bblanchon/ArduinoJson @ ^7.0.2
check_tool = clangtidy, cppcheck
check_flags =
clangtidy: --checks '-*,bugprone-*,clang-analyzer-*,misc-*,performance-*,portability-*,readability-*,-readability-magic-numbers,-readability-static-accessed-through-instance,-readability-misplaced-array-index,google-*'
cppcheck: --enable=all --disable=unusedFunction --inline-suppr --std=c++20 --suppress=*:*/.pio/* --suppress=unmatchedSuppression:*/.pio/* --suppress=missingIncludeSystem:*
check_skip_packages = no
check_src_filters = +<src/*>
build_flags = -Wall -DENABLE_LOGGING
platform_packages =
platformio/tool-clangtidy@^1.150005.0
platformio/tool-cppcheck@^1.21100.230717
[env:test-native]
platform = native
build_type = test
test_framework = doctest
test_build_src = true
lib_deps =
bblanchon/ArduinoJson@^7.0.2
doctest/doctest@^2.4.9
build_flags = -std=gnu++17 -I ${platformio.test_dir}/helpers
debug_test = test_template