Merge pull request #40231 from spxtr/bazelrc

Automatic merge from submit-queue (batch tested with PRs 40187, 40231, 40152)

Add .bazelrc with flaky_test_attempts.

**What this PR does / why we need it**: This PR adds `.bazelrc`, which will set defaults for all bazel commands. The only controversial default I set is `--flaky_test_attempts=3`.

**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-01-20 13:29:46 -08:00 committed by GitHub
commit 5e272d6a0c
2 changed files with 7 additions and 1 deletions

6
.bazelrc Normal file
View File

@ -0,0 +1,6 @@
# Show us information about failures.
build --verbose_failures
test --test_output=errors
# Retry tests up to 3 times if they fail.
test --flaky_test_attempts=3

View File

@ -498,7 +498,7 @@ endef
@echo "$$BAZEL_TEST_HELP_INFO"
else
bazel-test:
bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/... //hack:verify-all
bazel test //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/... //hack:verify-all
endif
ifeq ($(PRINT_HELP),y)