mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Only build tests with bazel test --config=unit
This commit is contained in:
parent
3fd6f97f55
commit
e34a0619ea
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user