From 6bf7fc351424b2d4eaba27798b4f67e1f268ad5a Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Thu, 21 Sep 2017 14:52:54 -0700 Subject: [PATCH] bazel: build/test almost everything --- build/root/BUILD.root | 1 + build/root/Makefile | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build/root/BUILD.root b/build/root/BUILD.root index 56627f257dd..a56e731655a 100644 --- a/build/root/BUILD.root +++ b/build/root/BUILD.root @@ -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": "", diff --git a/build/root/Makefile b/build/root/Makefile index ffed29909cd..83bf9ac2e62 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -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)