2018-08-03 09:21:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2019-12-30 06:39:22 -03:00
|
|
|
# Copyright (c) 2018-2019 The Bitcoin Core developers
|
2018-08-03 09:21:03 -04: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-14 20:55:30 -03:00
|
|
|
if [ -n "$CIRRUS_PR" ]; then
|
|
|
|
# CIRRUS_PR will be present in a Cirrus environment. For builds triggered
|
2020-10-03 13:00:43 -03:00
|
|
|
# by a pull request this is the name of the branch targeted by the pull request.
|
2020-12-14 20:55:30 -03:00
|
|
|
# https://cirrus-ci.org/guide/writing-tasks/#environment-variables
|
|
|
|
COMMIT_RANGE="$CIRRUS_BRANCH..HEAD"
|
2020-10-03 13:00:43 -03:00
|
|
|
test/lint/commit-script-check.sh $COMMIT_RANGE
|
2018-08-03 09:21:03 -04:00
|
|
|
fi
|
|
|
|
|
2020-12-04 05:33:15 -03: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.
|
2018-08-03 09:21:03 -04:00
|
|
|
test/lint/git-subtree-check.sh src/crypto/ctaes
|
|
|
|
test/lint/git-subtree-check.sh src/secp256k1
|
|
|
|
test/lint/git-subtree-check.sh src/univalue
|
|
|
|
test/lint/git-subtree-check.sh src/leveldb
|
2019-11-07 09:43:55 -03:00
|
|
|
test/lint/git-subtree-check.sh src/crc32c
|
2018-08-03 09:21:03 -04:00
|
|
|
test/lint/check-doc.py
|
|
|
|
test/lint/check-rpc-mappings.py .
|
|
|
|
test/lint/lint-all.sh
|
|
|
|
|
2020-12-14 20:55:30 -03:00
|
|
|
if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ -n "$CIRRUS_CRON" ]; then
|
2018-11-10 14:15:21 -03:00
|
|
|
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
|
2020-12-14 20:55:30 -03:00
|
|
|
${CI_RETRY_EXE} gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $(<contrib/verify-commits/trusted-keys) &&
|
2019-01-25 00:28:27 -03:00
|
|
|
./contrib/verify-commits/verify-commits.py --clean-merge=2;
|
2018-08-03 09:21:03 -04:00
|
|
|
fi
|