Skip to content

Commit

Permalink
build: fix Travis non-PR builds
Browse files Browse the repository at this point in the history
Don't return non-zero if TRAVIS_PULL_REQUEST == "false".

PR-URL: #24093
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
richardlau authored and targos committed Nov 5, 2018
1 parent 3de1c5c commit 99c2a10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 99c2a10

Please sign in to comment.