Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit f09253e

Browse files
authored
Travis: skip installing buildifier on Darwin. (#216)
We don't run format.sh on Darwin in the first place.
1 parent a6c780c commit f09253e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ cache:
2121

2222
before_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

0 commit comments

Comments
 (0)