Skip to content

Commit 10af252

Browse files
committed
ci: Drop Travis-specific way to set COMMIT_RANGE variable
1 parent 93504da commit 10af252

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

test/lint/lint-git-commit-check.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ while getopts "?" opt; do
2323
esac
2424
done
2525

26-
# TRAVIS_BRANCH will be present in a Travis environment. For builds triggered
27-
# by a pull request this is the name of the branch targeted by the pull request.
28-
# https://docs.travis-ci.com/user/environment-variables/
29-
if [ -n "${TRAVIS_BRANCH}" ]; then
30-
COMMIT_RANGE="$TRAVIS_BRANCH..HEAD"
31-
fi
32-
3326
if [ -z "${COMMIT_RANGE}" ]; then
3427
if [ -n "$1" ]; then
3528
COMMIT_RANGE="HEAD~$1...HEAD"

test/lint/lint-whitespace.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ while getopts "?" opt; do
2222
esac
2323
done
2424

25-
# TRAVIS_BRANCH will be present in a Travis environment. For builds triggered
26-
# by a pull request this is the name of the branch targeted by the pull request.
27-
# https://docs.travis-ci.com/user/environment-variables/
28-
if [ -n "${TRAVIS_BRANCH}" ]; then
29-
COMMIT_RANGE="$TRAVIS_BRANCH..HEAD"
30-
fi
31-
3225
if [ -z "${COMMIT_RANGE}" ]; then
3326
if [ -n "$1" ]; then
3427
COMMIT_RANGE="HEAD~$1...HEAD"

0 commit comments

Comments
 (0)