mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +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",
|
"//build/release-tars:release-tars-and-hashes",
|
||||||
"//cluster/gce:gcs-release-artifacts-and-hashes",
|
"//cluster/gce:gcs-release-artifacts-and-hashes",
|
||||||
],
|
],
|
||||||
|
tags = ["manual"],
|
||||||
upload_paths = {
|
upload_paths = {
|
||||||
"//:_binary-artifacts-and-hashes": "bin/linux/amd64",
|
"//:_binary-artifacts-and-hashes": "bin/linux/amd64",
|
||||||
"//build/release-tars:release-tars-and-hashes": "",
|
"//build/release-tars:release-tars-and-hashes": "",
|
||||||
|
@ -521,8 +521,9 @@ endef
|
|||||||
bazel-build:
|
bazel-build:
|
||||||
@echo "$$BAZEL_BUILD_HELP_INFO"
|
@echo "$$BAZEL_BUILD_HELP_INFO"
|
||||||
else
|
else
|
||||||
|
# Some things in vendor don't build due to empty target lists for cross-platform rules.
|
||||||
bazel-build:
|
bazel-build:
|
||||||
bazel build //cmd/... //hack/... //pkg/... //federation/... //plugin/... //third_party/... //examples/... //test/... //vendor/k8s.io/...
|
bazel build -- //... -//vendor/...
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -536,8 +537,15 @@ endef
|
|||||||
bazel-test:
|
bazel-test:
|
||||||
@echo "$$BAZEL_TEST_HELP_INFO"
|
@echo "$$BAZEL_TEST_HELP_INFO"
|
||||||
else
|
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:
|
||||||
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
|
endif
|
||||||
|
|
||||||
ifeq ($(PRINT_HELP),y)
|
ifeq ($(PRINT_HELP),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user