homebrew-core/Formula/flank.rb

38 lines
948 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/v22.05.0/flank.jar"
sha256 "9fa48fe91228c1f36bdec499dcd34c1fafd325419351e7a87cb216d751618205"
license "Apache-2.0"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, all: "3cfa4d0bce6d88b5bb8946b15daeac3a28a6ec9112c61973ac7bd15545c094c0"
end
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