From 99c2a10f7b060bc0996eeb18305e7b4b91123b73 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 4 Nov 2018 19:50:21 -0500 Subject: [PATCH] build: fix Travis non-PR builds Don't return non-zero if TRAVIS_PULL_REQUEST == "false". PR-URL: https://github.com/nodejs/node/pull/24093 Reviewed-By: Refael Ackermann Reviewed-By: Rich Trott --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9fa6d5d55252a7..d1b4f3099911da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ matrix: script: - make lint # Lint the first commit in the PR. - - \[ "${TRAVIS_PULL_REQUEST}" != "false" \] && bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST} + - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then + bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST}; + fi - name: "Test Suite" addons: apt: