Commit e34a0619 authored by Jeff Grafton's avatar Jeff Grafton

Only build tests with bazel test --config=unit

parent 3fd6f97f
...@@ -17,6 +17,8 @@ build --sandbox_fake_username ...@@ -17,6 +17,8 @@ build --sandbox_fake_username
# Enable go race detection. # Enable go race detection.
build:unit --features=race build:unit --features=race
test:unit --features=race test:unit --features=race
test:unit --build_tests_only
test:unit --test_tag_filters=-e2e,-integration test:unit --test_tag_filters=-e2e,-integration
test:unit --flaky_test_attempts=3 test:unit --flaky_test_attempts=3
......
...@@ -568,13 +568,11 @@ bazel-test: ...@@ -568,13 +568,11 @@ bazel-test:
@echo "$$BAZEL_TEST_HELP_INFO" @echo "$$BAZEL_TEST_HELP_INFO"
else else
# //hack:verify-all is a manual target. # //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. # Some things in vendor don't build due to empty target lists for cross-platform rules.
bazel-test: bazel-test:
bazel test --config=unit -- \ bazel test --config=unit -- \
//... \ //... \
//hack:verify-all \ //hack:verify-all \
-//build/... \
-//vendor/... -//vendor/...
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment