homebrew-core/Formula/flank.rb

36 lines
836 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/v21.03.0/flank.jar"
sha256 "03f6e80baf6b90439b38aa922544b8678a6bb535cba4e3c32046aaec6091716b"
license "Apache-2.0"
livecheck do
url :stable
strategy :github_latest
end
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 "Valid yml file", output
end
end