Use --batch for gazelle to help with timeouts on buildkite (#843)

* Use --batch for gazelle to help with timeouts on buildkite, maybe

* batch for vis script too
This commit is contained in:
Preston Van Loon 2018-11-21 07:35:47 -05:00 committed by GitHub
parent e9bb4e3bde
commit d83f960d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
exec 5>&1
# Run gazelle while piping a copy of the output to stdout via 5.
changes=$(bazel --bazelrc=.buildkite-bazelrc run //:gazelle -- fix --mode=diff | tee >(cat - >&5))
changes=$(bazel --batch --bazelrc=.buildkite-bazelrc run //:gazelle -- fix --mode=diff | tee >(cat - >&5))
# If the captured stdout is not empty then Gazelle has diffs.
if [ -z "$changes" ]

View File

@ -13,7 +13,7 @@ exec 5>&1
# Run gazelle while piping a copy of the output to stdout via 5.
changes=$(
bazel --bazelrc=.buildkite-bazelrc query 'visible(//... except (//beacon-chain/... union //validator/...), (//beacon-chain/... union //validator/...))' | tee >(cat - >&5)
bazel --batch --bazelrc=.buildkite-bazelrc query 'visible(//... except (//beacon-chain/... union //validator/...), (//beacon-chain/... union //validator/...))' | tee >(cat - >&5)
)
# If the captured stdout is not empty then targets are exposed!