From 52b03d1845714d2cdb7cd7e7697ff026c4d40c75 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 24 Nov 2016 15:16:01 +0000 Subject: 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 --- BUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'BUILD') 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__"], +) -- cgit v1.2.3