Public Access
CI / build (push) Successful in 9m9s
scripts/coverage.sh builds the host tests with coverage counters and reports with gcovr: 94.6% of the 3,193 lines of lib/ today (lib/SD and src/ have no host tests and aren't counted). CI runs it on every push, puts the figure in the job's summary, and on main publishes a coverage badge and a latest-release badge to the branch 'badges'. The README shows them next to Gitea's own badge for the workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
60 lines
2.0 KiB
INI
60 lines
2.0 KiB
INI
; roro9stack — firmware for M5Stack Cardputer ADV + Cap LoRa-1262
|
|
; Build/test/flash through scripts/ci.sh and scripts/flash.sh (Docker), see README.
|
|
|
|
[platformio]
|
|
default_envs = cardputer-adv
|
|
|
|
[env]
|
|
extra_scripts = pre:scripts/version.py
|
|
test_framework = unity
|
|
|
|
[env:cardputer-adv]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.312/platform-espressif32.zip
|
|
board = m5stack-stamps3
|
|
framework = arduino
|
|
board_build.partitions = default_8MB.csv
|
|
monitor_speed = 115200
|
|
build_flags =
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_USB_MODE=1
|
|
lib_deps =
|
|
m5stack/M5Cardputer @ 1.1.1
|
|
jgromes/RadioLib @ 7.8.1
|
|
test_ignore = *
|
|
; Smaller TLS buffers (M2): the framework is rebuilt with these settings (pioarduino "hybrid
|
|
; compile"). Receive stays 16 KB (servers send full TLS records); send drops to 4 KB (IRC lines are
|
|
; short); buffers are allocated as needed and handshake-only data is freed once connected.
|
|
custom_sdkconfig =
|
|
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
|
|
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384
|
|
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
|
|
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
|
|
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
|
|
CONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT=y
|
|
|
|
; Debug Build: the same firmware plus the Debug Console on TCP 2323 (see ADR 0004). The token comes
|
|
; from ~/.config/roro9stack/debug-token, passed in by scripts/_docker.sh; it's never committed.
|
|
[env:cardputer-adv-debug]
|
|
extends = env:cardputer-adv
|
|
extra_scripts = pre:scripts/version.py, pre:scripts/debug_flags.py
|
|
build_flags =
|
|
${env:cardputer-adv.build_flags}
|
|
-DRORO_DEBUG
|
|
|
|
; Host-side unit tests for pure logic (no hardware).
|
|
[env:native]
|
|
platform = native
|
|
lib_ldf_mode = deep+
|
|
build_flags = -std=gnu++17
|
|
|
|
; The same tests, built to count which lines of lib/ they run (scripts/coverage.sh).
|
|
[env:native-coverage]
|
|
extends = env:native
|
|
build_flags =
|
|
${env:native.build_flags}
|
|
--coverage
|
|
-O0
|
|
extra_scripts =
|
|
${env.extra_scripts}
|
|
pre:scripts/coverage_link.py
|