32 lines
818 B
Ruby
32 lines
818 B
Ruby
class Flank < Formula
|
|
desc "Massively parallel Android and iOS test runner for Firebase Test Lab"
|
|
homepage "https://github.com/Flank/flank"
|
|
url "https://github.com/Flank/flank/releases/download/v20.09.3/flank.jar"
|
|
sha256 "09b05bc4586a5415b3ec986c7cdbfe9a77c5df94b732197ddafdb46020f3fc48"
|
|
license "Apache-2.0"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
libexec.install "flank.jar"
|
|
bin.write_jar_script libexec/"flank.jar", "flank"
|
|
end
|
|
|
|
test do
|
|
(testpath/"flank.yml").write <<~EOS
|
|
gcloud:
|
|
device:
|
|
- model: Pixel2
|
|
version: "29"
|
|
locale: en
|
|
orientation: portrait
|
|
EOS
|
|
|
|
output = shell_output("#{bin}/flank android doctor")
|
|
assert_match "version: v#{version}", output
|
|
assert_match "Valid yml file", output
|
|
end
|
|
end
|