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

Commit c338d91

Browse files
authored
Travis: Install buildifier if it's not present. (#205)
1 parent 15175f1 commit c338d91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ env: BAZEL_OPTIONS="--local_resources=4096,2,1.0 --copt=-Werror=thread-safety"
1717
cache:
1818
directories:
1919
- $HOME/bazel-cache
20+
- $HOME/gopath/bin
2021

2122
before_install:
23+
# 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
2228
# OS X does not have clang-format by default, and has a different sed.
2329
- if \[ "$TRAVIS_OS_NAME" == "linux" \]; then
2430
tools/format.sh ;

0 commit comments

Comments
 (0)