diff options
author | Klaus Aehlig <aehlig@google.com> | 2016-11-24 15:16:01 +0000 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2016-11-24 15:55:14 +0000 |
commit | 52b03d1845714d2cdb7cd7e7697ff026c4d40c75 (patch) | |
tree | ff4f17fd8600bcebce0ef2946a7ebc262a4a12ed /BUILD | |
parent | cc428bc2193abfef4275954505a8dbf229ca8f4c (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-- | BUILD | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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__"], +) |