bazel 0.19.2
Closes #34578. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
681c59ce65
commit
ae2518bb44
1 changed files with 15 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
class Bazel < Formula
|
||||
desc "Google's own build tool"
|
||||
homepage "https://bazel.build/"
|
||||
url "https://github.com/bazelbuild/bazel/releases/download/0.18.1/bazel-0.18.1-dist.zip"
|
||||
sha256 "baed9f28c317000a4ec1ad2571b3939356d22746ca945ac2109148d7abb860d4"
|
||||
url "https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-dist.zip"
|
||||
sha256 "11234cce4f6bdc62c3ac688f41c7b5c178eecb6f7e2c4ba0bcf00ba8565b1d19"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -23,8 +23,13 @@ class Bazel < Formula
|
|||
|
||||
cd "sources" do
|
||||
system "./compile.sh"
|
||||
system "./output/bazel", "--output_user_root",
|
||||
buildpath/"output_user_root", "build", "scripts:bash_completion"
|
||||
system "./output/bazel",
|
||||
"--output_user_root",
|
||||
buildpath/"output_user_root",
|
||||
"build",
|
||||
"--host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
|
||||
"--java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
|
||||
"scripts:bash_completion"
|
||||
|
||||
bin.install "scripts/packages/bazel.sh" => "bazel"
|
||||
bin.install "output/bazel" => "bazel-real"
|
||||
|
@ -56,7 +61,11 @@ class Bazel < Formula
|
|||
)
|
||||
EOS
|
||||
|
||||
system bin/"bazel", "build", "//:bazel-test"
|
||||
system "bazel-bin/bazel-test"
|
||||
system bin/"bazel",
|
||||
"build",
|
||||
"--host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
|
||||
"--java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8",
|
||||
"//:bazel-test"
|
||||
assert_equal "Hi!\n", pipe_output("bazel-bin/bazel-test")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue