32 lines
816 B
Ruby
32 lines
816 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.08.3/flank.jar"
|
|
sha256 "38ba01915c4d6b4ce0969f5324c7a94b8c06a12a5bcf45427a28dd40f8fdc63d"
|
|
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
|