mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #9294 from smlng/pr/tools/cwd
tools: allow static checks to be run from any directory
This commit is contained in:
commit
ec2fe9a308
5
dist/tools/coccinelle/check.sh
vendored
5
dist/tools/coccinelle/check.sh
vendored
@ -6,7 +6,10 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
EXIT_CODE=0
|
||||
|
5
dist/tools/cppcheck/check.sh
vendored
5
dist/tools/cppcheck/check.sh
vendored
@ -8,7 +8,10 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
# Don't show warnings about unusedStructMembers by default
|
||||
|
5
dist/tools/externc/check.sh
vendored
5
dist/tools/externc/check.sh
vendored
@ -8,7 +8,10 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
# prepare
|
||||
|
5
dist/tools/flake8/check.sh
vendored
5
dist/tools/flake8/check.sh
vendored
@ -17,7 +17,10 @@ else
|
||||
CRESET=
|
||||
fi
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
EXCLUDE='^(.+/vendor/|dist/tools/cc2538-bsl|dist/tools/mcuboot|dist/tools/uhcpd)'
|
||||
|
5
dist/tools/headerguards/check.sh
vendored
5
dist/tools/headerguards/check.sh
vendored
@ -6,7 +6,10 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
EXIT_CODE=0
|
||||
|
5
dist/tools/licenses/check.sh
vendored
5
dist/tools/licenses/check.sh
vendored
@ -7,7 +7,10 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/ci/changed_files.sh
|
||||
|
||||
# customizable
|
||||
|
8
dist/tools/pr_check/pr_check.sh
vendored
8
dist/tools/pr_check/pr_check.sh
vendored
@ -7,10 +7,14 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
EXIT_CODE=0
|
||||
: "${RIOTTOOLS:=${PWD}/dist/tools}"
|
||||
: "${RIOTBASE:=$(cd $(dirname $0)/../../../; pwd)}"
|
||||
cd $RIOTBASE
|
||||
|
||||
: "${RIOTTOOLS:=${RIOTBASE}/dist/tools}"
|
||||
. "${RIOTTOOLS}"/pr_check/check_labels.sh
|
||||
|
||||
EXIT_CODE=0
|
||||
|
||||
if tput colors &> /dev/null && [ $(tput colors) -ge 8 ]; then
|
||||
CERROR="\e[1;31m"
|
||||
CRESET="\e[0m"
|
||||
|
Loading…
Reference in New Issue
Block a user