From af249da1a35cab56cadcac98ec448d19948c4fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 27 Jan 2022 09:18:31 +0100 Subject: [PATCH] accept one or more environment definitions This is a non breaking change. Up till now you could either specify ONE board to check or run with default settings hich would check a sensible set. With this change you can provide a space-separated list of boards to check, this facilitates parallel CI executions better. --- bin/check-all.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/check-all.sh b/bin/check-all.sh index 3cf8fa4bf..900d37ae2 100755 --- a/bin/check-all.sh +++ b/bin/check-all.sh @@ -11,10 +11,16 @@ export APP_VERSION=$VERSION if [[ $# -gt 0 ]]; then # can override which environment by passing arg - BOARDS="-e $1" + BOARDS="-e $@" else - BOARDS="-e tlora-v2 -e tlora-v1 -e tlora_v1_3 -e tlora-v2-1-1.6 -e tbeam -e heltec-v1 -e heltec-v2.0 -e heltec-v2.1 -e tbeam0.7 -e meshtastic-diy-v1 -e rak4631_5005 -e rak4631_19003 -e t-echo" + BOARDS="tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec-v1 heltec-v2.0 heltec-v2.1 tbeam0.7 meshtastic-diy-v1 rak4631_5005 rak4631_19003 t-echo" fi #echo "BOARDS:${BOARDS}" -pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" $BOARDS --skip-packages --pattern="src/" --fail-on-defect=low --fail-on-defect=medium --fail-on-defect=high + +CHECK="" +for BOARD in $BOARDS; do + CHECK="${CHECK} -e ${BOARD}" +done + +pio check --flags "-DAPP_VERSION=${APP_VERSION} --suppressions-list=suppressions.txt" $CHECK --skip-packages --pattern="src/" --fail-on-defect=low --fail-on-defect=medium --fail-on-defect=high