1
0
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:
Gaëtan Harter 2018-06-12 12:39:42 +02:00 committed by GitHub
commit ec2fe9a308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)'

View File

@ -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

View File

@ -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

View File

@ -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"