dist/tools/ci/static_tests.sh: tag base branch for Murdock
This commit is contained in:
parent
294b999d34
commit
f7bb189d3e
13
dist/tools/ci/static_tests.sh
vendored
13
dist/tools/ci/static_tests.sh
vendored
@ -51,19 +51,26 @@ function run {
|
||||
|
||||
RESULT=0
|
||||
|
||||
if [ -n "${CI_BASE_COMMIT}" ]; then
|
||||
# on Murdock, there's no base branch in the checkout folder.
|
||||
# Thus, tag it here.
|
||||
echo "-- tagging ${CI_BASE_BRANCH} HEAD commit (${CI_BASE_COMMIT})"
|
||||
git tag "${CI_BASE_BRANCH}" "${CI_BASE_COMMIT}"
|
||||
fi
|
||||
|
||||
CI_BASE_BRANCH=${CI_BASE_BRANCH:-master}
|
||||
|
||||
export BASE_BRANCH="${CI_BASE_BRANCH}"
|
||||
|
||||
run ./dist/tools/commit-msg/check.sh "${CI_BASE_BRANCH}"
|
||||
run ./dist/tools/whitespacecheck/check.sh "${CI_BASE_BRANCH}"
|
||||
run ./dist/tools/commit-msg/check.sh "${BASE_BRANCH}"
|
||||
run ./dist/tools/whitespacecheck/check.sh "${BASE_BRANCH}"
|
||||
DIFFFILTER="MR" ERROR_EXIT_CODE=0 run ./dist/tools/licenses/check.sh
|
||||
DIFFFILTER="AC" run ./dist/tools/licenses/check.sh
|
||||
run ./dist/tools/doccheck/check.sh
|
||||
run ./dist/tools/externc/check.sh
|
||||
run ./dist/tools/cppcheck/check.sh
|
||||
run ./dist/tools/vera++/check.sh
|
||||
run ./dist/tools/pr_check/pr_check.sh "${CI_BASE_BRANCH}"
|
||||
run ./dist/tools/pr_check/pr_check.sh "${BASE_BRANCH}"
|
||||
run ./dist/tools/coccinelle/check.sh
|
||||
run ./dist/tools/flake8/check.sh
|
||||
run ./dist/tools/headerguards/check.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user