2021-12-19 09:33:39 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2020-12-31 18:50:11 +01:00
|
|
|
# Copyright (c) 2018-2020 The Bitcoin Core developers
|
2021-12-19 09:33:39 +01:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
export LC_ALL=C
|
|
|
|
|
2020-12-21 12:08:35 +01:00
|
|
|
GIT_HEAD=$(git rev-parse HEAD)
|
2020-12-17 09:04:37 +01:00
|
|
|
if [ -n "$CIRRUS_PR" ]; then
|
2021-11-08 09:31:53 +01:00
|
|
|
COMMIT_RANGE="${CIRRUS_BASE_SHA}..$GIT_HEAD"
|
|
|
|
test/lint/commit-script-check.sh "$COMMIT_RANGE"
|
2021-12-19 09:33:39 +01:00
|
|
|
fi
|
2020-12-21 12:08:35 +01:00
|
|
|
export COMMIT_RANGE
|
2021-12-19 09:33:39 +01:00
|
|
|
|
2020-12-10 12:04:19 +01:00
|
|
|
# This only checks that the trees are pure subtrees, it is not doing a full
|
|
|
|
# check with -r to not have to fetch all the remotes.
|
2021-12-19 09:33:39 +01:00
|
|
|
test/lint/git-subtree-check.sh src/crypto/ctaes
|
|
|
|
test/lint/git-subtree-check.sh src/secp256k1
|
2021-07-20 20:18:43 +02:00
|
|
|
test/lint/git-subtree-check.sh src/minisketch
|
2021-12-19 09:33:39 +01:00
|
|
|
test/lint/git-subtree-check.sh src/univalue
|
|
|
|
test/lint/git-subtree-check.sh src/leveldb
|
|
|
|
test/lint/check-doc.py
|
2024-11-25 15:55:24 +01:00
|
|
|
test/lint/lint-all.py
|
2021-12-19 09:33:39 +01:00
|
|
|
|
2020-12-17 09:04:37 +01:00
|
|
|
if [ "$CIRRUS_REPO_FULL_NAME" = "dashpay/dash" ] && [ -n "$CIRRUS_CRON" ]; then
|
2021-12-19 09:33:39 +01:00
|
|
|
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
|
2024-11-23 11:10:59 +01:00
|
|
|
mapfile -t KEYS < contrib/verify-commits/trusted-keys
|
|
|
|
${CI_RETRY_EXE} gpg --keyserver hkps://keys.openpgp.org --recv-keys "${KEYS[@]}" &&
|
2021-12-19 09:33:39 +01:00
|
|
|
./contrib/verify-commits/verify-commits.py --clean-merge=2;
|
|
|
|
fi
|
2020-12-21 12:08:35 +01:00
|
|
|
|
2021-11-08 09:31:53 +01:00
|
|
|
if [ -n "$COMMIT_RANGE" ]; then
|
|
|
|
echo
|
|
|
|
git log --no-merges --oneline "$COMMIT_RANGE"
|
|
|
|
fi
|