mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
bazel: build/test almost everything
This commit is contained in:
parent
f1953c4f53
commit
6bf7fc3514
@ -29,6 +29,7 @@ gcs_upload(
|
||||
"//build/release-tars:release-tars-and-hashes",
|
||||
"//cluster/gce:gcs-release-artifacts-and-hashes",
|
||||
],
|
||||
tags = ["manual"],
|
||||
upload_paths = {
|
||||
"//:_binary-artifacts-and-hashes": "bin/linux/amd64",
|
||||
"//build/release-tars:release-tars-and-hashes": "",
|
||||
|
@ -521,8 +521,9 @@ endef
|
||||
bazel-build:
|
||||
@echo "$$BAZEL_BUILD_HELP_INFO"
|
||||
else
|
||||
# Some things in vendor don't build due to empty target lists for cross-platform rules.
|
||||
bazel-build:
|
||||
bazel build //cmd/... //hack/... //pkg/... //federation/... //plugin/... //third_party/... //examples/... //test/... //vendor/k8s.io/...
|
||||
bazel build -- //... -//vendor/...
|
||||
endif
|
||||
|
||||
|
||||
@ -536,8 +537,15 @@ endef
|
||||
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 --test_tag_filters=-integration --flaky_test_attempts=3 //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //hack/... //hack:verify-all //vendor/k8s.io/...
|
||||
bazel test --build_tag_filters=-e2e,-integration --test_tag_filters=-e2e,-integration --flaky_test_attempts=3 -- \
|
||||
//... \
|
||||
//hack:verify-all \
|
||||
-//build/... \
|
||||
-//vendor/...
|
||||
endif
|
||||
|
||||
ifeq ($(PRINT_HELP),y)
|
||||
|
Loading…
Reference in New Issue
Block a user