File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ cache:
2121
2222before_install :
2323 # Install buildifier if it's not present. It needs at least go 1.8.
24- - if ! which buildifier >/dev/null; then
25- eval "$(gimme 1.11)" ;
26- go get -v github.com/bazelbuild/buildtools/buildifier ;
27- fi
28- # OS X does not have clang-format by default, and has a different sed.
24+ # Skip format on OS X: it doesn't have clang-format by default, and has a different sed.
2925 - if \[ "$TRAVIS_OS_NAME" == "linux" \]; then
30- tools/format.sh ;
26+ if ! which buildifier >/dev/null; then
27+ eval "$(gimme 1.11)";
28+ go get -v github.com/bazelbuild/buildtools/buildifier;
29+ fi;
30+ tools/format.sh;
3131 fi
3232 - wget https://github.com/bazelbuild/bazel/releases/download/0.17.1/bazel-0.17.1-installer-${BAZEL_OS}-x86_64.sh
3333 - chmod +x bazel-0.17.1-installer-${BAZEL_OS}-x86_64.sh
You can’t perform that action at this time.
0 commit comments