From bde8eb5f82837bd035a681e1bd05be8df259e108 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 4 Nov 2018 12:33:27 +0100 Subject: [PATCH] build: do not lint on non-PR Travis builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not run any linting at all when `TRAVIS_PULL_REQUEST` is `false`. This would otherwise break Travis CI for `master` and release branches. Refs: https://github.com/nodejs/node/pull/24030 PR-URL: https://github.com/nodejs/node/pull/24076 Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Rich Trott --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dce15b7ab16851..9fa6d5d55252a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ matrix: script: - make lint # Lint the first commit in the PR. - - \[ "${TRAVIS_PULL_REQUEST}" != "false" \] && PR_ID=${TRAVIS_PULL_REQUEST}; bash tools/lint-pr-commit-message.sh ${PR_ID} + - \[ "${TRAVIS_PULL_REQUEST}" != "false" \] && bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST} - name: "Test Suite" addons: apt: