mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-16 20:01:37 +02:00
ci: Fix COMMIT_RANGE variable value for PRs
This commit is contained in:
parent
f1dbf92ff0
commit
93504da3a9
@ -1,9 +0,0 @@
|
|||||||
#!/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 fetch
|
|
@ -7,12 +7,10 @@
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
if [ -n "$CIRRUS_PR" ]; then
|
if [ -n "$CIRRUS_PR" ]; then
|
||||||
# CIRRUS_PR will be present in a Cirrus environment. For builds triggered
|
COMMIT_RANGE="$CIRRUS_BASE_SHA..HEAD"
|
||||||
# by a pull request this is the name of the branch targeted by the pull request.
|
|
||||||
# https://cirrus-ci.org/guide/writing-tasks/#environment-variables
|
|
||||||
COMMIT_RANGE="$CIRRUS_BRANCH..HEAD"
|
|
||||||
test/lint/commit-script-check.sh $COMMIT_RANGE
|
test/lint/commit-script-check.sh $COMMIT_RANGE
|
||||||
fi
|
fi
|
||||||
|
export COMMIT_RANGE
|
||||||
|
|
||||||
# This only checks that the trees are pure subtrees, it is not doing a full
|
# 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.
|
# check with -r to not have to fetch all the remotes.
|
||||||
|
@ -8,5 +8,4 @@ export LC_ALL=C.UTF-8
|
|||||||
|
|
||||||
set -o errexit; source ./ci/test/00_setup_env.sh
|
set -o errexit; source ./ci/test/00_setup_env.sh
|
||||||
set -o errexit; source ./ci/lint/04_install.sh
|
set -o errexit; source ./ci/lint/04_install.sh
|
||||||
set -o errexit; source ./ci/lint/05_before_script.sh
|
|
||||||
set -o errexit; source ./ci/lint/06_script.sh
|
set -o errexit; source ./ci/lint/06_script.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user