mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +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.
|
# 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:
|
|||||||
@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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user