Skip to content

Commit

Permalink
druid 0.20.0
Browse files Browse the repository at this point in the history
* druid 0.20.0
* druid: undeprecate and fix test
* druid: add license

Closes #65889.

Co-authored-by: Alexander Bayandin <[email protected]>
Signed-off-by: Alexander Bayandin <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
2 people authored and BrewTestBot committed Dec 4, 2020
1 parent d73ec88 commit bdb7c74
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Formula/druid.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Druid < Formula
desc "High-performance, column-oriented, distributed data store"
homepage "https://druid.apache.org/"
url "http://static.druid.io/artifacts/releases/druid-0.12.3-bin.tar.gz"
sha256 "807581d54fa4c5a90eec2a230e2a7fc4c6daf18eb8136009bf36a775d793d6f6"
url "https://www.apache.org/dyn/closer.lua?path=druid/0.20.0/apache-druid-0.20.0-bin.tar.gz"
mirror "https://archive.apache.org/dist/druid/0.20.0/apache-druid-0.20.0-bin.tar.gz"
sha256 "734f836375bc1121100712b0501149f8bcbcb6d4cf2109b522af06367a8b1cb5"
license "Apache-2.0"

livecheck do
url "https://druid.apache.org/downloads.html"
Expand All @@ -11,10 +13,8 @@ class Druid < Formula

bottle :unneeded

deprecate! because: :does_not_build

depends_on "zookeeper" => :test
depends_on "openjdk@8"
depends_on "zookeeper"

resource "mysql-metadata-storage" do
url "http://static.druid.io/artifacts/releases/mysql-metadata-storage-0.12.3.tar.gz"
Expand Down Expand Up @@ -47,7 +47,7 @@ def install
end

bin.install Dir["#{libexec}/bin/*.sh"]
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8"))
bin.env_script_all_files libexec/"bin", Language::Java.overridable_java_home_env("1.8")

Pathname.glob("#{bin}/*.sh") do |file|
mv file, bin/"druid-#{file.basename}"
Expand All @@ -68,13 +68,15 @@ def post_install
end

test do
ENV["DRUID_CONF_DIR"] = libexec/"conf-quickstart/druid"
ENV["DRUID_CONF_DIR"] = libexec/"conf/druid/single-server/nano-quickstart"
ENV["DRUID_LOG_DIR"] = testpath
ENV["DRUID_PID_DIR"] = testpath
ENV["ZOO_LOG_DIR"] = testpath

system Formula["zookeeper"].opt_bin/"zkServer", "start"
begin
pid = fork { exec bin/"druid-broker.sh", "start" }
sleep 30
sleep 40
output = shell_output("curl -s http://localhost:8082/status")
assert_match /version/m, output
ensure
Expand Down

0 comments on commit bdb7c74

Please sign in to comment.