Only build tests with bazel test --config=unit

This commit is contained in:
Jeff Grafton 2018-12-04 15:05:50 -08:00
parent 3fd6f97f55
commit e34a0619ea
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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