aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-11-24 15:16:01 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-24 15:55:14 +0000
commit52b03d1845714d2cdb7cd7e7697ff026c4d40c75 (patch)
treeff4f17fd8600bcebce0ef2946a7ebc262a4a12ed /BUILD
parentcc428bc2193abfef4275954505a8dbf229ca8f4c (diff)
Make //tols/cpp/test start from the distribution artifact
The docker tests in //tools/cpp/test still assume that the sources are enough to just compile.sh to bootstrap a bazel binary. Fix this, by using the distribution archive instead. While there, also add a target for the distribution archive as tar. -- Change-Id: Ic31bb95da0165f83a14537a1719c27e5067d0d65 Reviewed-on: https://cr.bazel.build/7531 MOS_MIGRATED_REVID=140134322
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 15d5460c0e..b0fe401970 100644
--- a/BUILD
+++ b/BUILD
@@ -71,3 +71,16 @@ genrule(
# Public but bazel-only visibility.
visibility = ["//:__subpackages__"],
)
+
+genrule(
+ name = "bazel-distfile-tar",
+ srcs = [
+ ":bazel-srcs",
+ "//src:derived_java_srcs",
+ ],
+ outs = ["bazel-distfile.tar"],
+ cmd = "env USE_TAR=YES $(location :combine_distfiles.sh) $@ $(SRCS)",
+ tools = ["combine_distfiles.sh"],
+ # Public but bazel-only visibility.
+ visibility = ["//:__subpackages__"],
+)