Skip to content
Snippets Groups Projects
Commit 1adb5852 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

tools: allow static checks to be run from any directory

parent 59e18df6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
FILES=$(FILEREGEX='(?=*.py$|pyterm$)' changed_files)
......
......@@ -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
......
......@@ -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
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment