Skip to content

Commit

Permalink
ci: Drop Travis-specific way to set COMMIT_RANGE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Dec 21, 2020
1 parent 93504da commit 10af252
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions test/lint/lint-git-commit-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ while getopts "?" opt; do
esac
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 [ -n "$1" ]; then
COMMIT_RANGE="HEAD~$1...HEAD"
Expand Down
7 changes: 0 additions & 7 deletions test/lint/lint-whitespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ while getopts "?" opt; do
esac
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 [ -n "$1" ]; then
COMMIT_RANGE="HEAD~$1...HEAD"
Expand Down

0 comments on commit 10af252

Please sign in to comment.