summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-10-09 21:51:55 -0700
committerRich Trott <rtrott@gmail.com>2018-10-09 22:18:36 -0700
commita1edecca3b06913973d8b139cce3841e8e0de615 (patch)
treecb4731b80ee8c710be88e3b2365b236d2806cead /.travis.yml
parenteddfa2c52ee91e657c1a3e42815e6dff960a7fe3 (diff)
downloadandroid-node-v8-a1edecca3b06913973d8b139cce3841e8e0de615.tar.gz
android-node-v8-a1edecca3b06913973d8b139cce3841e8e0de615.tar.bz2
android-node-v8-a1edecca3b06913973d8b139cce3841e8e0de615.zip
tools: make Travis commit linting more robust
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some situations. Refs: https://github.com/nodejs/node/pull/23307#issuecomment-428435859 PR-URL: https://github.com/nodejs/node/pull/23397 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 3acc282797..fad2e7f0c7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
script:
- make lint
# Lint the first commit in the PR.
- - git log HEAD ^$TRAVIS_BRANCH --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
+ - git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
- name: "Test Suite"
install:
- ./configure