Skip to content

Commit 99c2a10

Browse files
richardlautargos
authored andcommittedNov 5, 2018
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>
1 parent 3de1c5c commit 99c2a10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ matrix:
1111
script:
1212
- make lint
1313
# Lint the first commit in the PR.
14-
- \[ "${TRAVIS_PULL_REQUEST}" != "false" \] && bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST}
14+
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
15+
bash tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
16+
fi
1517
- name: "Test Suite"
1618
addons:
1719
apt:

0 commit comments

Comments
 (0)