mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
802cb9521f
3c2478c38522c176e81befd4d991a259b09be063 ci: Print COMMIT_RANGE to the log as it was in Travis CI (Hennadii Stepanov) c123892c2e47e3706f06820aba2454d494a39564 ci: Drop Travis-specific workaround for shellcheck (Hennadii Stepanov) 10af252d97532843b26505d215f6e975f4b21672 ci: Drop Travis-specific way to set COMMIT_RANGE variable (Hennadii Stepanov) 93504da3a932f33126545ebc9383f695a6efe51e ci: Fix COMMIT_RANGE variable value for PRs (Hennadii Stepanov) Pull request description: This PR: - is a #20658 and #20682 followup - set the `COMMIT_RANGE` variable correctly for PRs - cleans up Travis-specific code - prints COMMIT_RANGE value to the log for convenience as it was in Travis CI ACKs for top commit: MarcoFalke: ACK 3c2478c38522c176e81befd4d991a259b09be063 Tree-SHA512: beb933352b10fd5eb3e66373ddb62439e4f3a03b50fb037ee89fa92c0706cec41d05f2d307f15bb18d1e634e6464f4e123b7e2f88703c8edfd145d8d6eff0b1a
34 lines
1.2 KiB
Bash
Executable File
34 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018-2019 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C
|
|
|
|
GIT_HEAD=$(git rev-parse HEAD)
|
|
if [ -n "$CIRRUS_PR" ]; then
|
|
COMMIT_RANGE="$CIRRUS_BASE_SHA..$GIT_HEAD"
|
|
test/lint/commit-script-check.sh $COMMIT_RANGE
|
|
fi
|
|
export COMMIT_RANGE
|
|
|
|
# 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.
|
|
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
|
|
test/lint/check-doc.py
|
|
test/lint/check-rpc-mappings.py .
|
|
test/lint/lint-all.sh
|
|
|
|
if [ "$CIRRUS_REPO_FULL_NAME" = "dashpay/dash" ] && [ -n "$CIRRUS_CRON" ]; then
|
|
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit
|
|
${CI_RETRY_EXE} gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $(<contrib/verify-commits/trusted-keys) &&
|
|
./contrib/verify-commits/verify-commits.py --clean-merge=2;
|
|
fi
|
|
|
|
echo
|
|
git log --no-merges --oneline $COMMIT_RANGE
|