Skip to content

Commit c0ab4ae

Browse files
committed
Add custom clang-format binary to default $PATH on Travis. Travis has an
older version of clang installed by default which has formatting differences with the internal version.
1 parent aab7418 commit c0ab4ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ install:
1717
before_script:
1818
- ./scripts/http/simple_http_server.py 2> /dev/null & sleep 5
1919
- ./scripts/ci/sauce_connect.sh
20+
# Ensure we point to the version of clang-format that we installed in
21+
# install_closure_deps.sh. Travis has an older version on the $PATH and
22+
# clang-format-diff.py invokes "clang-format" with no option of specifying
23+
# a binary path.
24+
- export PATH=$PWD/../clang/bin/:$PATH
2025

2126
script:
2227
- ./scripts/ci/compile_closure.sh

0 commit comments

Comments
 (0)