From e34a0619ea53d8f72517dca12517bb09d31b438f Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Tue, 4 Dec 2018 15:05:50 -0800 Subject: [PATCH] Only build tests with bazel test --config=unit --- build/root/.bazelrc | 2 ++ build/root/Makefile | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/root/.bazelrc b/build/root/.bazelrc index 4a7dcbb570e..8fc89e94c5a 100644 --- a/build/root/.bazelrc +++ b/build/root/.bazelrc @@ -17,6 +17,8 @@ build --sandbox_fake_username # Enable go race detection. build:unit --features=race test:unit --features=race + +test:unit --build_tests_only test:unit --test_tag_filters=-e2e,-integration test:unit --flaky_test_attempts=3 diff --git a/build/root/Makefile b/build/root/Makefile index 48ad3919b57..6a86d1ea45b 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -568,13 +568,11 @@ bazel-test: @echo "$$BAZEL_TEST_HELP_INFO" else # //hack:verify-all is a manual target. -# We don't want to build any of the release artifacts when running tests. # Some things in vendor don't build due to empty target lists for cross-platform rules. bazel-test: bazel test --config=unit -- \ //... \ //hack:verify-all \ - -//build/... \ -//vendor/... endif