Skip to content

Commit ae74a62

Browse files
committed
build system: Enable static analysis in the CI
For a select set of boards, enable static analysis. The cost of static analysis in terms of CPU time is quite significant, so we try to get the most out of as little extra CPU time as possible by having it enabled only a small set of popular boards.
1 parent 259a80f commit ae74a62

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile.include

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,22 @@ ifeq ($(RIOT_CI_BUILD),1)
520520
endif
521521
# be more quiet when building for CI
522522
QUIETER=1
523+
524+
# Enable static analysis only for some boards to not spent to much CPU time.
525+
# This list is intentionally a subset of the `QUICKBUILD_BOARDS` from
526+
# `.murdock`
527+
BOARDS_CI_STATIC_ANALYSIS := \
528+
esp32-wroom-32 \
529+
native64 \
530+
nrf52840dk \
531+
samr21-xpro \
532+
stm32f429i-disc1 \
533+
#
534+
ifneq (,$(filter $(BOARD),$(BOARDS_CI_STATIC_ANALYSIS)))
535+
export STATIC_ANALYSIS := 1
536+
else
537+
export STATIC_ANALYSIS := 0
538+
endif
523539
endif
524540

525541
ifeq ($(QUIETER),1)

0 commit comments

Comments
 (0)