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.10.0/flank.jar"
sha256 "e5f5e3bcaf7eb435537c8e27df1cc44b4442c561e6a6fc624dcd7df2e39c4955"
license "Apache-2.0"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, all: "c27971dc3b6018d7423b97cee78725d500792cc7c9226c2fb1e8a30ad95fbd91"
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