meshtastic-firmware/bin/check-all.sh

19 wiersze
570 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)
pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" -e tbeam --skip-packages --severity=medium --severity=high --pattern="src/"
return_code=$?
# TODO: not sure why return_code is 0
echo "return_code:${return_code}"