skeema 1.9.0 (new formula)
Closes #118169. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Patrick Linnane <patrick@linnane.io> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
0dc56efbb6
commit
f62c8487c2
|
@ -0,0 +1,24 @@
|
|||
class Skeema < Formula
|
||||
desc "Declarative pure-SQL schema management for MySQL and MariaDB"
|
||||
homepage "https://www.skeema.io/"
|
||||
url "https://github.com/skeema/skeema/archive/refs/tags/v1.9.0.tar.gz"
|
||||
sha256 "26cdcb663514ef7515389b1bb09d5644ae6230e4b1ec3c19d3cd9c4b7ac9743a"
|
||||
license "Apache-2.0"
|
||||
head "https://github.com/skeema/skeema.git", branch: "main"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
system "go", "build", *std_go_args(ldflags: "-s -w")
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "Option --host must be supplied on the command-line",
|
||||
shell_output("#{bin}/skeema init 2>&1", 78)
|
||||
|
||||
assert_match "Unable to connect to localhost",
|
||||
shell_output("#{bin}/skeema init -h localhost -u root --password=test 2>&1", 2)
|
||||
|
||||
assert_match version.to_s, shell_output("#{bin}/skeema --version")
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue