Skip to content

Commit 2a8a28c

Browse files
Trottrvagg
authored andcommittedNov 28, 2018
tools: make Travis commit linting more robust
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some situations. Refs: #23307 (comment) PR-URL: #23397 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent c15d236 commit 2a8a28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ matrix:
1313
script:
1414
- make lint
1515
# Lint the first commit in the PR.
16-
- git log HEAD ^$TRAVIS_BRANCH --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
16+
- git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
1717
- name: "Test Suite"
1818
install:
1919
- ./configure

0 commit comments

Comments
 (0)
Please sign in to comment.