summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-08-21 19:15:14 -0700
committerRich Trott <rtrott@gmail.com>2018-10-05 10:25:50 -0700
commit2cf6a9483978c987351c5469d89bba6c37f95535 (patch)
tree76b97659bf9c03cf982671f6d4bdc9ba40afea60 /.travis.yml
parente1d4b0a6467d6ee47eebf223c773946d38427d74 (diff)
downloadandroid-node-v8-2cf6a9483978c987351c5469d89bba6c37f95535.tar.gz
android-node-v8-2cf6a9483978c987351c5469d89bba6c37f95535.tar.bz2
android-node-v8-2cf6a9483978c987351c5469d89bba6c37f95535.zip
tools: apply linting to first commit in PRs
Use Travis-CI to check the formatting of the first commit in a pull request. This will hopefully reduce formatting errors and nits about them in pull requests. PR-URL: https://github.com/nodejs/node/pull/22452 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 3dc3a73c33..3acc282797 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,8 @@ matrix:
- NODE=$(which node)
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
- name: "Test Suite"
install:
- ./configure