mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
ci: Drop Travis-specific way to set COMMIT_RANGE variable
This commit is contained in:
parent
93504da3a9
commit
10af252d97
2 changed files with 0 additions and 14 deletions
|
@ -23,13 +23,6 @@ while getopts "?" opt; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# TRAVIS_BRANCH will be present in a Travis environment. For builds triggered
|
|
||||||
# by a pull request this is the name of the branch targeted by the pull request.
|
|
||||||
# https://docs.travis-ci.com/user/environment-variables/
|
|
||||||
if [ -n "${TRAVIS_BRANCH}" ]; then
|
|
||||||
COMMIT_RANGE="$TRAVIS_BRANCH..HEAD"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${COMMIT_RANGE}" ]; then
|
if [ -z "${COMMIT_RANGE}" ]; then
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
COMMIT_RANGE="HEAD~$1...HEAD"
|
COMMIT_RANGE="HEAD~$1...HEAD"
|
||||||
|
|
|
@ -22,13 +22,6 @@ while getopts "?" opt; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# TRAVIS_BRANCH will be present in a Travis environment. For builds triggered
|
|
||||||
# by a pull request this is the name of the branch targeted by the pull request.
|
|
||||||
# https://docs.travis-ci.com/user/environment-variables/
|
|
||||||
if [ -n "${TRAVIS_BRANCH}" ]; then
|
|
||||||
COMMIT_RANGE="$TRAVIS_BRANCH..HEAD"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${COMMIT_RANGE}" ]; then
|
if [ -z "${COMMIT_RANGE}" ]; then
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
COMMIT_RANGE="HEAD~$1...HEAD"
|
COMMIT_RANGE="HEAD~$1...HEAD"
|
||||||
|
|
Loading…
Add table
Reference in a new issue