meshtastic-firmware/bin/check-all.sh

20 wiersze
699 B
Bash
Czysty Zwykły widok Historia

2022-01-24 07:00:14 +00:00
#!/usr/bin/env bash
# Note: This is a prototype for how we could add static code analysis to the CI.
set -e
VERSION=`bin/buildinfo.py long`
# The shell vars the build tool expects to find
export APP_VERSION=$VERSION
# only check high and medium in our source
# TODO: only doing tbeam (to start; add all/more later)
2022-01-24 17:24:40 +00:00
#pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" -e tbeam --skip-packages --severity=medium --severity=high --pattern="src/"
pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" -e tbeam --skip-packages --pattern="src/"
2022-01-24 07:00:14 +00:00
return_code=$?
# TODO: not sure why return_code is 0
echo "return_code:${return_code}"