Skip to content
Permalink
Browse files

build: fix Travis non-PR builds

Don't return non-zero if TRAVIS_PULL_REQUEST == "false".

PR-URL: #24093
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
richardlau authored and MylesBorins committed Nov 5, 2018
1 parent 3bac885 commit 19bda8a2255d7f4d262f8f1a1d26eafefea048c5
Showing with 3 additions and 1 deletion.
  1. +3 −1 .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:

0 comments on commit 19bda8a

Please sign in to comment.
You can’t perform that action at this time.